void MakeHenFlap(Hen h) { if (h != null) { h.GetComponent <Rigidbody>().velocity = new Vector3(0, 0, 0); h.GetComponent <Animator>().SetTrigger("inWater"); } }
void StopHenFlap(Hen h) { if (h != null) { h.GetComponent <Animator>().ResetTrigger("inWater"); } // TODO actually stop animation }