示例#1
0
    public override void TriggerEntered(Collider2D otherCollider)
    {
        // if it's the player, do player specific things
        MovementKM movement = otherCollider.gameObject.GetComponent <MovementKM>();

        if (movement != null)
        {
            movement.Push(transform.up, _bounceAmount, _bounceDuration);
        }
    }