Exemplo n.º 1
0
 public void VrcAnimationEvent(AnimationEvent aEvent)
 {
     foreach (VrcEvent @event in Events)
     {
         if (!(@event.Name != aEvent.get_stringParameter()))
         {
             TriggerEvent(@event, VrcBroadcastType.Local);
         }
     }
 }
Exemplo n.º 2
0
 public void OnActionEnd(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new AnimationEndCmd
     {
         actName = e.get_stringParameter()
     });
 }
Exemplo n.º 3
0
 public void UltraSkill(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new UltraSkillCmd
     {
         args = e.get_stringParameter()
     });
 }
Exemplo n.º 4
0
 public void Traverse(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new TraverseCmd
     {
         className = e.get_stringParameter()
     });
 }
Exemplo n.º 5
0
 public void ChangeWeaponSlotWithoutChangePosition(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new ChangeWeaponSlotWithoutChangePositionCmd
     {
         slot_name = e.get_stringParameter()
     });
 }
Exemplo n.º 6
0
 public void HideTexture(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new HideTextureCmd
     {
         textureNames = e.get_stringParameter()
     });
 }
Exemplo n.º 7
0
 public void Termination(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new SetTerminationCmd
     {
         actionName = e.get_stringParameter()
     });
 }
Exemplo n.º 8
0
 public void RemoveSkill(AnimationEvent e)
 {
     if (!this.CheckEventIsValid(e))
     {
         return;
     }
     CommandCenter.ExecuteCommand(this.root, new RemoveSkillCmd
     {
         skillMessage = e.get_stringParameter()
     });
 }
Exemplo n.º 9
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()
     });
 }
        public bool CurrentAnimationHasLabel(string labelName, StringComparison comparisonType, out int frame)
        {
            AnimationEvent[] events = m_currentAnimation.get_events();
            int num = events.Length;

            for (int i = 0; i < num; i++)
            {
                AnimationEvent val = events[i];
                if (val.get_functionName().Equals("SetLabel") && val.get_stringParameter().Equals(labelName, comparisonType))
                {
                    frame = Mathf.FloorToInt(val.get_time() * m_currentAnimation.get_frameRate());
                    return(true);
                }
            }
            frame = 0;
            return(false);
        }
Exemplo n.º 11
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])
     });
 }