示例#1
0
        //-----------------------------------
        void HitAndDeath()
        {
            if (cbDeath != null)
            {
                cbDeath(this, 1);
                cbDeath = null;
            }

            Destroy();
        }
示例#2
0
 public void Destroy()
 {
     cbDeath = null;
     gameObject.SetActive(false);
 }
示例#3
0
 //---------------------------------------
 public void InitFirst(VOID_FUN_ENEMY _cb)
 {
     cbDeath = _cb;
 }