private void OnMachineAnimationEnd(Spine.AnimationState state, int trackIndex) { if (this.waitingAnimationToEnd.Equals(state.ToString())) { this.machineIsLocked = false; } if (this.introAnimationName.Equals(state.ToString())) { EventManager.Send(new CraftingMachineEvent(WorkshopMenu.CraftingMachineAction.Idle, 0)); } }
private void OnEffectAnimationEnd(Spine.AnimationState state, int trackIndex) { if (this.openingEffectAnimation != null && state.ToString().Equals("Outro")) { this.openingEffectAnimation.state.End -= this.OnEffectAnimationEnd; UnityEngine.Object.Destroy(this.openingEffectAnimation.transform.parent.gameObject); } }
static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Spine.AnimationState obj = (Spine.AnimationState)ToLua.CheckObject(L, 1, typeof(Spine.AnimationState)); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void OnMachineAnimationStart(Spine.AnimationState state, int trackIndex) { if (this.idleAnimationNames != null && this.idleAnimationNames.Length > 3) { bool flag = this.idleAnimationNames[3].Equals(state.ToString()); if (this.machineSmokePuffEffect != null) { if (flag) { this.machineSmokePuffEffect.Play(); } else { this.machineSmokePuffEffect.Stop(); } } } }
// Token: 0x06008AD0 RID: 35536 RVA: 0x002873AC File Offset: 0x002855AC private void HandleSpineAnimationEvent(Spine.AnimationState state, int trackIndex, Spine.Event e) { AudioUtility.SearchAndPlaySpineAnimEventSound(this.m_spine.skeletonDataAsset.name, state.ToString(), e.Data.Name); }