Beispiel #1
0
 private void Start()
 {
     doc           = GameObject.FindGameObjectWithTag("TileGenerator").GetComponent <DestroyOnClick>();
     tileGenerator = doc.tileGenerator;
     //tileRows = tileGenerator.rows;
     //Debug.Log(tileGenerator.rows * tileGenerator.colums);
     //Debug.Log(tileRows);
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     gameOverPanel.SetActive(false);
     player1PC      = player1.GetComponent <PlayerController>();
     player2PC      = player2.GetComponent <PlayerController>();
     tileGenerator  = GetComponent <RandomMapGenerator2D>();
     maxMoves       = player1PC.maxMoves;
     movesLeft      = maxMoves;
     movesText.text = maxMoves.ToString();
     foreach (Button button in player2Buttons)
     {
         button.interactable = false;
     }
     endTurn.SetActive(false);
 }