Example #1
0
 // Use this for initialization
 void Start()
 {
     attackDefendController = GameObject.Find("BattleControllers").GetComponent <AttackDefendController>();
     itemController         = GameObject.Find("BattleControllers").GetComponent <BattleItemController>();
     abilityController      = GameObject.Find("BattleControllers").GetComponent <BattleAbilityController>();
     target = null;
     action = Action.Null;
 }
 // Use this for initialization
 void Start()
 {
     currentUnit  = gameObject.GetComponent <UnitStats>();
     enemyParty   = GameObject.Find("EnemyParty(Clone)").GetComponent <EnemyPartyController>();
     flow         = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>();
     ui           = GameObject.Find("BattleControllers").GetComponent <BattleUIController>();
     attackDefend = GameObject.Find("BattleControllers").GetComponent <AttackDefendController>();
     mode         = GameObject.Find("BattleControllers").GetComponent <BattleModeController>();
     item         = GameObject.Find("BattleControllers").GetComponent <BattleItemController>();
     ability      = GameObject.Find("BattleControllers").GetComponent <BattleAbilityController>();
 }