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