void Start() { party = GameObject.Find("PlayerParty").GetComponent <PartyController>(); flow = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>(); ui = GameObject.Find("BattleControllers").GetComponent <BattleUIController>(); action = Action.Item; }
// Use this for initialization void Start() { target = GameObject.Find("BattleControllers").GetComponent <TargetHandler>(); flow = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>(); ui = GameObject.Find("BattleControllers").GetComponent <BattleUIController>(); action = Action.Attack; gameObject.GetComponent <Button>().onClick.AddListener(SetAction); }
// 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>(); }
// Use this for initialization void Start() { controller = GameObject.Find("BattleControllers").GetComponent <BattleAbilityController>(); ui = GameObject.Find("BattleControllers").GetComponent <BattleUIController>(); target = GameObject.Find("BattleControllers").GetComponent <TargetHandler>(); flow = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>(); party = GameObject.Find("PlayerParty").GetComponent <PartyController>(); gameObject.transform.SetParent(holderPanel.transform, false); StartCoroutine("WaitAndUpdateText"); Button theBtn = gameObject.GetComponent <Button>(); theBtn.onClick.AddListener(SetAction); action = Action.Ability; }
void Start() { flow = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>(); ui = GameObject.Find("BattleControllers").GetComponent <BattleUIController>(); action = Action.Null; }
// Use this for initialization void Start() { flow = gameObject.GetComponent <BattleFlowController>(); ui = gameObject.GetComponent <BattleUIController>(); }
// Use this for initialization void Start() { pbtns = new List <BattlePartyButtonController>(); flow = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>(); player = GameObject.Find("PlayerParty").GetComponent <PartyController>().player; }
// Use this for initialization void Start() { flow = GameObject.Find("BattleControllers").GetComponent <BattleFlowController>(); currentMember = flow.currentUnit; }