示例#1
0
    protected override void Collision()
    {
        if (--Durable <= 0)
        {
            PlatformEventsHandler.RaiseBadPlatformDestroyed();
        }

        PlatformEventsHandler.RaiseBadPlatformHit();

        _badAnimation.Play();
        SetMaterial(_crackedMateial);
    }
示例#2
0
 public void Destroy()
 {
     PlatformEventsHandler.RaisePlatformDestroyed(this);
     _particleSystem.Play();
 }