private void OnCompleteHandler() { tween.Kill(); if (bullet != null) { bullet.Stop(); } Debug.LogError("tweener end"); }
public override void Destroy() { TimerManager.RemoveHandler(timerInfo); timerInfo = null; for (int i = 0; i < nEffectCache.Count; ++i) { NEffect nEffect = nEffectCache[i]; nEffect.Stop(); } nEffectCache.Clear(); effectLsit.Clear(); if (FSM != null) { FSM.Destroy(); FSM = null; } base.Destroy(); }
//public Transform GetChild(string cn) //{ // if (Model == null) // { // return null; // } // if (Model.Container == null) // { // return null; // } // return Model.GetChild(cn); //} //public void AddChild(GameObject child, string bonen, bool destroyOldChild = false) //{ // if (Model != null) // { // Model.AddChild(child, bonen, destroyOldChild); // } //} public void StopOldActionEffect(string actionName) { ActionInfo actionInfo = characterConfigInfo.GetActionInfo(actionName); if (actionInfo == null) { return; } for (int i = 0; i < actionInfo.ActionEffectInfos.Count; ++i) { EffectInfo effectInfo = actionInfo.ActionEffectInfos[i]; NEffect nEffect = null; effectLsit.TryGetValue(effectInfo.Index, out nEffect); if (nEffect != null) { nEffect.Stop(); } } }