public override void OnDestroy() { _target = null; SharedPool <XTransformTrack> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { if (prefabGameObject) { XResources.DestroyGameObject(path, prefabGameObject); particleSystems = null; } SharedPool <XSceneFxClip> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { if (fx) { XResources.DestroyGameObject(path, fx); fx = null; } ps = null; SharedPool <XBoneFxClip> .Return(this); base.OnDestroy(); }
public static void DestroySharedAsset(string path) { if (sharedPool.ContainsKey(path)) { var asset = sharedPool[path]; asset.refence--; if (asset.refence <= 0) { #if !UNITY_EDITOR Resources.UnloadAsset(asset.asset); #endif SharedPool<Asset>.Return(asset); } } }
public override void OnDestroy() { if (playable.IsValid()) { playable.Destroy(); if (track.mixPlayable.IsValid()) { track.mixPlayable.SetInputCount(0); } } XResources.DestroySharedAsset(data.anim); SharedPool <XAnimationClip> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { if (!seqence.IsHostTrack(this)) { if (mixPlayable.IsValid()) { mixPlayable.Destroy(); } if (playableOutput.IsOutputValid()) { XSeqence.graph.DestroyOutput(playableOutput); } mixJob.Dispose(); SharedPool <XAnimationTrack> .Return(this); idx = 0; tmp = 0; } base.OnDestroy(); }
public virtual void OnDestroy() { Foreach(track => track.OnDestroy(), clip => clip.OnDestroy()); ForeachMark(mark => mark.OnDestroy()); childs = null; marks = null; parent = null; clips = null; mode = 0; if (mixs != null) { for (int i = 0; i < mixs.Count; i++) { SharedPool <MixClip> .Return(mixs[i]); } mixs.Clear(); mixs = null; } }
public static void DestroyGameObject(string path, GameObject go) { if (Application.isPlaying) { Object.Destroy(go); } else { Object.DestroyImmediate(go); } if (goPool.ContainsKey(path)) { var it = goPool[path]; it.refence--; if (it.refence <= 0) { goPool.Remove(path); SharedPool<Asset>.Return(it); } } }
public override void OnDestroy() { SharedPool <XLogicClip> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { SharedPool <XBoneFxTrack> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { SharedPool <XJumpMarker> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { SharedPool <XPostprocessTrack> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { SharedPool <XActiveMark> .Return(this); base.OnDestroy(); }
public override void OnDestroy() { draw?.Destroy(); base.OnDestroy(); SharedPool <XLogicTrack> .Return(this); }