public void Refresh() { StopCoroutine(GetComponent <Modes>().End()); play.interactable = false; DeleteCoins(); mg.refresh(); loadbutton.interactable = true; last.interactable = true; mode.value = 0; }
public void Last() { mg = new MazeGen(go, this); mg.refresh(); mg.loaddata("temp"); play.interactable = true; mode.interactable = true; last.interactable = false; }
public void New() { StopCoroutine(GetComponent <Modes>().End()); play.interactable = true; if (sx.text != null) { MazeGen.sizeX = Int32.Parse(sx.text); } if (sy.text != null) { MazeGen.sizeY = Int32.Parse(sy.text); } mg = new MazeGen(go, this); mode.interactable = true; mg.refresh(); mg.mazeStart(); if (mode.value == 1) { AddCoins(); } }