Exemple #1
0
 public void StartThrow(AnimationTriggerDelegate throwObject, AnimationTriggerDelegate throwFinished)
 {
     Debug.Log(@"StartThrow()");
     throwObjectDelegate   = throwObject;
     throwFinishedDelegate = throwFinished;
     animator.SetTrigger("throw");
 }
Exemple #2
0
 public void ThrowFinished(AnimationEvent evt)
 {
     if (throwFinishedDelegate != null)
     {
         Debug.Log(@"ThrowFinished()");
         throwFinishedDelegate();
         throwFinishedDelegate = null;
     }
 }
Exemple #3
0
 public void ThrowObject(AnimationEvent evt)
 {
     if (throwObjectDelegate != null)
     {
         Debug.Log(@"ThrowObject()");
         throwObjectDelegate();
         throwObjectDelegate = null;
     }
 }