public void endMiniGame() { generalManager manager = managerGame.GetComponent <generalManager> (); manager.miniGameStatus = miniGameStatus; manager.endMiniGame = true; }
// Start is called before the first frame update void Start() { simonMode = GameObject.Find("TileManager").GetComponent <SimonManager>(); instanceOfB = GameObject.Find("TileManager").GetComponent <TileManager>(); generalMang = GameObject.Find("TileManager").GetComponent <generalManager>(); instanceOfC = GameObject.Find("Player").GetComponent <scirp>(); }
public void Awake() { genManager = new generalManager(); colorines = new Queue <int>(); Ltiles = new tileL(); Ltiles.buildL(); Itiles = new tileI(); Itiles.buildI(); Btiles = new tileBox(); Btiles.buildBox(); Ttiles = new tileT(); Ttiles.buildT(); Stiles = new tileS(); Stiles.buildS(); }
void Awake() { instance = this; // instance = this is used to mark location of a OnMouseDown }