Beispiel #1
0
    public void OnControllerColliderHit(ControllerColliderHit collision)
    {
        if (!isDashing)
        {
            return;
        }

        Destroyable destroyable = collision.gameObject.GetComponent <Destroyable>();

        if (collision.gameObject.GetComponent <Destroyable>())
        {
            destroyable.onCollisionEvent();
        }
    }