[ui] ui dla Piotrowej implementacji

This commit is contained in:
Kacper Donat 2019-11-19 21:39:01 +01:00
parent c9bba44768
commit f8b8e37a48
2 changed files with 780 additions and 263 deletions

File diff suppressed because one or more lines are too long

View File

@ -30,12 +30,20 @@ public class CaveGenerator : MonoBehaviour
GenerateMap();
}
void Update()
public void GenerateDungeon()
{
if (Input.GetMouseButtonDown(0))
{
GenerateMap();
}
seed = Time.realtimeSinceStartup.ToString();
cave = false;
randomFillPercent = 75;
GenerateMap();
}
public void GenerateCave()
{
seed = Time.realtimeSinceStartup.ToString();
cave = true;
randomFillPercent = 50;
GenerateMap();
}
public void GenerateMap()