示例#1
0
 // 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);
 }
示例#2
0
 public void removeFish(FishMovement fish)
 {
     followingFish.removeFish(fish);
     stateController.RemoveFollowingFish(fish);
     if (!fish.isSpecial()) thirdPersonCamera.removeObjectThatMustAlwaysRemainInFieldOfView(fish.transform.gameObject);
     updateMinimumSpeed();
 }