Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     grid    = GameObject.Find("Grid");
     tilemap = gameObject.GetComponent <Tilemap>();
     tilemap.CompressBounds();
     moveCount              = 0;
     gameStateRef           = GameObject.Find("PersistantGameState").GetComponent <PersistantGameState>();
     gameStateRef.gameScore = 0;
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     gameStateRef   = GameObject.Find("PersistantGameState").GetComponent <PersistantGameState>();
     scoreText.text = "Score: " + gameStateRef.gameScore;
 }