Beispiel #1
0
    void Jump(Collider other)
    {
        Fish fish = other.GetComponentInParent <Fish>();

        if (fish)
        {
            if (fish.lastTrigger == this)
            {
                return;
            }
            fish.CallJump();
            fish.lastTrigger = this;
        }
    }