protected virtual void RemoveFromData(TUnit chara) { Data.Remove(chara); OnDataChanged(chara); if (BaseGlobal.IsUnReadData) { Callback_OnDespawn?.Invoke(chara); Callback_OnDataChanged?.Invoke(chara); } }
public void RemoveFromData(TData data) { Data.Remove(data); OnDataChanged(data); if (BaseGlobal.IsUnReadData) { Callback_OnDespawn?.Invoke(data); Callback_OnDataChanged?.Invoke(data); } }
/// <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); }
/// <summary> /// despawn /// </summary> /// <param name="chara"></param> public virtual void Despawn(T chara, float delay = 0.0f) { Data.Remove(chara); Callback_OnDespawn?.Invoke(chara); }
/// <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); }