コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     if (dyingAnimation.ShouldBeEnded)
     {
         dyingAnimation.End();
     }
 }
コード例 #2
0
 // Call in the end if overridden
 protected virtual void Update()
 {
     if (attackAnimation.ShouldBeEnded)
     {
         //Debug.Log("Ending attack animation from Update!");
         attackAnimation.End();
     }
 }