// FIXME this is just a wrapper for followingFish :/ public void addFish(FishMovement fish) { followingFish.addFish(fish); stateController.AddFollowingFish(fish); if (!fish.isSpecial()) thirdPersonCamera.addObjectThatMustAlwaysRemainInFieldOfView(fish.transform.gameObject); updateMinimumSpeed(); if (fish.isTheLeadFish() && fish.parentSchool().isGameWinner()) Invoke("freedGameWinningFish", 5f); }
public void removeFish(FishMovement fish) { followingFish.removeFish(fish); stateController.RemoveFollowingFish(fish); if (!fish.isSpecial()) thirdPersonCamera.removeObjectThatMustAlwaysRemainInFieldOfView(fish.transform.gameObject); updateMinimumSpeed(); }