void Awake() { if (prop == null) { prop = GetComponent <ChampionProp>(); } if (skillLogic == null) { skillLogic = GetComponent <ChampionSkill>(); } if (neutralAI == null) { neutralAI = GetComponent <NeutralAI>(); } }
// Use this for initialization void Start() { neutralAI = GetComponent <NeutralAI>(); assignUnits = GetComponent <AssignUnits> (); suddenDeath = GetComponent <SuddenDeath>(); conflictResolution = GetComponent <ConflictResolution>(); timerText = GameObject.Find("TurnTimerText").GetComponent <Text>(); sections = GameObject.Find("Sectors").GetComponentsInChildren <Section>(); if (Data.IsDemo) { StartCoroutine("DemoModeRoutine"); } if (Data.GameFromLoaded) { // Restores the current turn value SetTurn(SaveGameHandler.loadedGame.CurrentTurn); } }