public void Start() { currentTeam = 0; setCurrentTeamUI(); teamHealthbarColorUpdate(); displayingUnitInfo = false; playerPhaseAnim = playerPhaseBlock.GetComponent <Animator>(); playerPhaseText = playerPhaseBlock.GetComponentInChildren <TextMeshProUGUI>(); unitPathToCursor = new List <Node>(); unitPathExists = false; TMS = GetComponent <tileMapScript>(); }
//This game object is to record the location of the 2 count path when it is reset to 0 this is used to remember what tile to disable //public GameObject quadThatIsOneAwayFromUnit; public void Start() { currentTeam = 0; setCurrentTeamUI(); setCurrentGoldUI(); teamHealthbarColorUpdate(); updateBuildingLight(); displayingUnitInfo = false; playerPhaseAnim = playerPhaseCanvas.GetComponent <Animator>(); playerPhaseText = playerPhaseCanvas.GetComponentInChildren <TextMeshProUGUI>(); pathNodes = new List <Node>(); unitPathExists = false; TMS = GetComponent <tileMapScript>(); }