public void VrcAnimationEvent(AnimationEvent aEvent) { foreach (VrcEvent @event in Events) { if (!(@event.Name != aEvent.get_stringParameter())) { TriggerEvent(@event, VrcBroadcastType.Local); } } }
public void OnActionEnd(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new AnimationEndCmd { actName = e.get_stringParameter() }); }
public void UltraSkill(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new UltraSkillCmd { args = e.get_stringParameter() }); }
public void Traverse(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new TraverseCmd { className = e.get_stringParameter() }); }
public void ChangeWeaponSlotWithoutChangePosition(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new ChangeWeaponSlotWithoutChangePositionCmd { slot_name = e.get_stringParameter() }); }
public void HideTexture(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new HideTextureCmd { textureNames = e.get_stringParameter() }); }
public void Termination(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new SetTerminationCmd { actionName = e.get_stringParameter() }); }
public void RemoveSkill(AnimationEvent e) { if (!this.CheckEventIsValid(e)) { return; } CommandCenter.ExecuteCommand(this.root, new RemoveSkillCmd { skillMessage = e.get_stringParameter() }); }
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); }
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]) }); }