protected override void Collision() { if (--Durable <= 0) { PlatformEventsHandler.RaiseBadPlatformDestroyed(); } PlatformEventsHandler.RaiseBadPlatformHit(); _badAnimation.Play(); SetMaterial(_crackedMateial); }
public void Destroy() { PlatformEventsHandler.RaisePlatformDestroyed(this); _particleSystem.Play(); }