/* * ------------------------------------------------------------------------- * MARK: LIFECYCLE FUNCTIONS * ------------------------------------------------------------------------- */ void Awake() { battleController = GetComponent <BattleController>(); moveMenuController = GetComponent <MoveMenuController>(); attackMenuController = GetComponent <AttackMenuController>(); }
/// <summary> /// When created /// </summary> public override void OnAwake() { this.attackMenuController = new AttackMenuController(this, this.AttackPopupPrefab); this.fixMenuController = new FixMenuController(this, this.FixPopupPrefab); this.ScoreController = GameObject.FindGameObjectWithTag("ScoreController").GetComponent <ScoreController>(); }