예제 #1
0
 private void Start()
 {
     countdownPane = FindObjectOfType <CountdownPane>();
     if (countdownPane == null)
     {
         throw new NullReferenceException("Could not find CountdownPane in the scene!");
     }
     countdownPane.Initialize(AttackersToSpawn);
 }
 protected override void Start()
 {
     base.Start();
     countdownPane = FindObjectOfType <CountdownPane>();
     if (countdownPane == null)
     {
         throw new NullReferenceException("Could not find CountdownPane in the scene!");
     }
 }