Exemplo n.º 1
0
        public virtual void OnTriggerEnter(Collider hitUnit, BasePerform perform)
        {
            BaseUnit tempUnit = hitUnit.GetComponent <BaseUnit>();

            if (tempUnit != null)
            {
            }
        }
Exemplo n.º 2
0
 void ClearEvent(BasePerform perform)
 {
     perform.Callback_OnTriggerIn  = null;
     perform.Callback_OnTriggering = null;
     perform.Callback_OnTriggerOut = null;
     perform.Callback_OnDoDestroy  = null;
     perform.Callback_OnLifeOver   = null;
 }
Exemplo n.º 3
0
 public override void Awake()
 {
     base.Awake();
     Perform = GetComponent <BasePerform>();
     if (Perform != null)
     {
         Perform.Callback_OnCreated += OnCreated;
     }
 }
Exemplo n.º 4
0
        public void Despawn(BasePerform perform, bool isRemove = true)
        {
            if (perform != null)
            {
                float      closeTime = perform.CloseTime;
                GameObject mono      = perform.GO;
                ClearEvent(perform);
                perform.OnClose();
                if (isRemove)
                {
                    Data.Remove(perform);
                }

                BaseGlobal.PoolMgr?.Perform.Despawn(mono, closeTime);
            }
        }
Exemplo n.º 5
0
        public void Despawn(BasePerform perform)
        {
            if (perform != null)
            {
                float      closeTime = perform.CloseTime;
                GameObject mono      = perform.GO;
                perform.Callback_OnTriggerIn  = null;
                perform.Callback_OnTriggering = null;
                perform.Callback_OnTriggerOut = null;
                perform.Callback_OnDoDestroy  = null;
                perform.Callback_OnLifeOver   = null;
                perform.OnClose();
                data.Remove(perform);

                SelfBaseGlobal.PoolMgr.Perform.Despawn(mono, closeTime);

                perform = null;
            }
        }
Exemplo n.º 6
0
 void OnCreated(BasePerform perform)
 {
     Play();
 }
Exemplo n.º 7
0
 public virtual void OnTriggerStay(Collider hitUnit, BasePerform perform)
 {
 }
Exemplo n.º 8
0
 public WorldWeatherData(int cd, BasePerform perform)
 {
     CD      = new CD(cd);
     Perform = perform;
 }
Exemplo n.º 9
0
 void OnPerformDoDestroy(BasePerform perform)
 {
     Despawn(perform);
 }