public virtual void Start() { theGame = GetComponentInParent <GameScript> (); healthPool = GetComponentInParent <HealthPoolScript> (); aliceScript = theGame.GetComponentInChildren <AliceScript> (); emilyScript = theGame.GetComponentInChildren <EmilyScript> (); }
void Start() { Application.targetFrameRate = 60; sfx = GetComponent <SFXScript> (); bugQueueScript = GetComponentInChildren <BugQueueScript> (); bugFarmScript = GetComponentInChildren <BugSpawnerScript> (); healthPool = GetComponent <HealthPoolScript> (); finalBossScript = GetComponentInChildren <FinalBossScript> (); aliceScript = GetComponentInChildren <AliceScript> (); emilyScript = GetComponentInChildren <EmilyScript> (); NextWave(2.0f); }
// Use this for initialization void Start() { emilyScript = Emily.GetComponent <EmilyScript> (); ropeScript = Rope.GetComponent <LassoScript> (); theGame = GetComponent <GameScript> (); }