protected override void Initialization() { base.Initialization(); b1BuggyFly = BuggyOne.GetComponent <AIDecisionBuggyFly>(); b2BuggyFly = BuggyTwo.GetComponent <AIDecisionBuggyFly>(); b3BuggyFly = BuggyThree.GetComponent <AIDecisionBuggyFly>(); b4BuggyFly = BuggyFour.GetComponent <AIDecisionBuggyFly>(); }
private void Start() { b1Health = BuggyOne.GetComponent <BaddieHealth>(); b2Health = BuggyTwo.GetComponent <BaddieHealth>(); b3Health = BuggyThree.GetComponent <BaddieHealth>(); b4Health = BuggyFour.GetComponent <BaddieHealth>(); b1Respawn = BuggyOne.GetComponent <AutoRespawn>(); b2Respawn = BuggyTwo.GetComponent <AutoRespawn>(); b3Respawn = BuggyThree.GetComponent <AutoRespawn>(); b4Respawn = BuggyFour.GetComponent <AutoRespawn>(); b1BuggyFly = BuggyOne.GetComponent <AIDecisionBuggyFly>(); b2BuggyFly = BuggyTwo.GetComponent <AIDecisionBuggyFly>(); b3BuggyFly = BuggyThree.GetComponent <AIDecisionBuggyFly>(); b4BuggyFly = BuggyFour.GetComponent <AIDecisionBuggyFly>(); }