Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     gameSpecs = FindObjectOfType <GameSpecifications>();
     currentNumberOfPlayers = minPlayers;
     battleMapLists         = new List <BattleMap>[3] {
         maps2p, maps3p, maps4p
     };
     ChangePlayerNumber(0);
     mapMenuEntries[selectedMap].LightUp();
 }
Exemplo n.º 2
0
 void Awake()
 {
     instance  = this;
     gameSpecs = FindObjectOfType <GameSpecifications>();
     players   = FindObjectsOfType <Army>();
     for (int i = 0; i < gameSpecs.playerNumber; i++)
     {
         players[i].COIdentity = gameSpecs.officers[i];
         players[i].SetLastPlaceOfCursor((int)initialCursorPositions[i].x, (int)initialCursorPositions[i].y);
     }
     activePlayer = players[0];
 }
 // Start is called before the first frame update
 void Start()
 {
     gameSpecs = FindObjectOfType <GameSpecifications>();
     for (int x = 0; x < gameSpecs.playerNumber; x++)
     {
         portraits[x].gameObject.SetActive(true);
         portraits[x].portrait.sprite = characters[x].portrait;
     }
     portraits[selectedSlot].HighlightMe();
     //for(int x = 0; x < selectedCharacters.Length; x++)
     //{
     //    portraits[x].portrait.sprite = characters[x].portrait;
     //}
 }
Exemplo n.º 4
0
 void Start()
 {
     characterHolder = FindObjectOfType <GameSpecifications>();
 }