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