Exemple #1
0
 public void ActionStraight(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new ActionStraightCmd
     {
         rate = e.get_floatParameter()
     });
 }
Exemple #2
0
 public void audio2D(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new Audio2DEventCmd
     {
         args = e
     });
 }
Exemple #3
0
 public void ColliderOff(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new IgnoreCollisionCmd
     {
         closeCollision = true
     });
 }
Exemple #4
0
 public void Termination(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new SetTerminationCmd
     {
         actionName = e.get_stringParameter()
     });
 }
Exemple #5
0
 public void MoveOn(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new RootMotionCmd
     {
         rootMotion = true
     });
 }
Exemple #6
0
 public void ChangeAI(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new ChangeAICmd
     {
         args = e
     });
 }
Exemple #7
0
 public void DeactivePart(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new DeactivePartCmd
     {
         args = e
     });
 }
Exemple #8
0
 public void RemoveSkill(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new RemoveSkillCmd
     {
         skillMessage = e.get_stringParameter()
     });
 }
Exemple #9
0
 public void ChangeHeightOver(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new NotifyPropChangedCmd
     {
         propName  = "ModelHeight",
         propValue = 0f
     });
 }
Exemple #10
0
 public void ChangeSpeedOver(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new NotifyPropChangedCmd
     {
         propName  = "AnimFactor",
         propValue = 1f
     });
 }
Exemple #11
0
 public void ChangeSpeed(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new NotifyPropChangedCmd
     {
         propName  = "AnimFactor",
         propValue = e.get_floatParameter(),
         propTag   = e.get_stringParameter()
     });
 }
Exemple #12
0
 public void CameraPosition(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     string[] array = e.get_stringParameter().Split(new char[]
     {
         ';'
     });
     if (array.Length < 2)
     {
         Debug.LogError("CameraPosition=参数少于2个");
     }
     CommandCenter.ExecuteCommand(this.root, new CameraPositionCmd
     {
         distance = float.Parse(array[0]),
         height   = float.Parse(array[1])
     });
 }