//----------------------------------- void HitAndDeath() { if (cbDeath != null) { cbDeath(this, 1); cbDeath = null; } Destroy(); }
public void Destroy() { cbDeath = null; gameObject.SetActive(false); }
//--------------------------------------- public void InitFirst(VOID_FUN_ENEMY _cb) { cbDeath = _cb; }