Esempio n. 1
0
 void OnPlatformLifeChanged(PlatformLife platform, int currentLives)
 {
     if (targetPlatform == platform)
     {
         OnThisPlatformLifeChanged(currentLives);
     }
 }
Esempio n. 2
0
 void OnPlatformDestroyed(PlatformLife platform)
 {
     if (targetPlatform == platform)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
 public void SetPlatform(PlatformLife platform, int startLives)
 {
     targetPlatform = platform;
     label.text     = startLives.ToString();
 }