Beispiel #1
0
 /// <summary>
 /// Destroy ball when death timer finishes
 /// </summary>
 void HandleDeathTimerFinished()
 {
     // invoke event and destroy self
     ballDied.Invoke();
     Destroy(gameObject);
 }
Beispiel #2
0
 private void HandleDeathTimerFinished()
 {
     // spawn new ball and destroy self
     ballDied.Invoke();
     Destroy(gameObject);
 }