void FixedUpdate() { transform.Rotate(0.0f, 0.25f, 0.0f, Space.Self); if (start + SimulationParameters.FOOD_SPOIL_TIME < Time.time) { pfc.remove(this); } }
private void die() { if (alive) { nav.isStopped = true; alive = false; pfc.remove(this); } }