Beispiel #1
0
 public virtual void Start()
 {
     theGame     = GetComponentInParent <GameScript> ();
     healthPool  = GetComponentInParent <HealthPoolScript> ();
     aliceScript = theGame.GetComponentInChildren <AliceScript> ();
     emilyScript = theGame.GetComponentInChildren <EmilyScript> ();
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     emilyScript = Emily.GetComponent <EmilyScript> ();
     ropeScript  = Rope.GetComponent <LassoScript> ();
     theGame     = GetComponent <GameScript> ();
 }