예제 #1
0
 protected virtual void RemoveFromData(TUnit chara)
 {
     Data.Remove(chara);
     OnDataChanged(chara);
     if (BaseGlobal.IsUnReadData)
     {
         Callback_OnDespawn?.Invoke(chara);
         Callback_OnDataChanged?.Invoke(chara);
     }
 }
예제 #2
0
 public void RemoveFromData(TData data)
 {
     Data.Remove(data);
     OnDataChanged(data);
     if (BaseGlobal.IsUnReadData)
     {
         Callback_OnDespawn?.Invoke(data);
         Callback_OnDataChanged?.Invoke(data);
     }
 }
예제 #3
0
 /// <summary>
 /// despawn
 /// </summary>
 /// <param name="chara"></param>
 public virtual void Despawn(TData data, float delay = 0.0f)
 {
     data.OnBeRemoved();
     Data.Remove(data);
     Callback_OnDespawn?.Invoke(data);
 }
예제 #4
0
 /// <summary>
 /// despawn
 /// </summary>
 /// <param name="chara"></param>
 public virtual void Despawn(T chara, float delay = 0.0f)
 {
     Data.Remove(chara);
     Callback_OnDespawn?.Invoke(chara);
 }
예제 #5
0
 /// <summary>
 /// despawn
 /// </summary>
 /// <param name="chara"></param>
 public virtual void Despawn(TUnit chara, float delay = 0.0f)
 {
     Pool().Despawn(chara, delay);
     Data.Remove(chara);
     Callback_OnDespawn?.Invoke(chara);
 }