Exemplo n.º 1
0
        private void Destroy(XFx fx)
        {
            if (fx.Fx == null)
            {
                XSingleton <XDebug> .singleton.AddErrorLog("Error fx ", fx.FxName, " already be deleted~!", null, null, null);

                return;
            }
            fx.Stop();
            fx.Fx.transform.parent   = null;
            fx.Fx.transform.position = XResourceLoaderMgr.Far_Far_Away;
            if (fx.callback != null)
            {
                fx.callback(fx);
            }
            fx.Clear();
            XSingleton <XResourceLoaderMgr> .singleton.Destroy(fx.Fx, true);

            fx.Fx = null;
            this.ReturnFx(fx);
        }
Exemplo n.º 2
0
 public void Stop(XFx fx)
 {
     fx.Stop();
 }