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