void Jump(Collider other) { Fish fish = other.GetComponentInParent <Fish>(); if (fish) { if (fish.lastTrigger == this) { return; } fish.CallJump(); fish.lastTrigger = this; } }
void Jump(Collider other) { Fish fish = other.GetComponentInParent <Fish>(); if (fish) { if (fish.lastTrigger == this) { return; } fish.CallJump(); fish.lastTrigger = this; } }