Exemplo n.º 1
0
        //-----------------------------------
        void HitAndDeath()
        {
            if (cbDeath != null)
            {
                cbDeath(this, 1);
                cbDeath = null;
            }

            Destroy();
        }
Exemplo n.º 2
0
 public void Destroy()
 {
     cbDeath = null;
     gameObject.SetActive(false);
 }
Exemplo n.º 3
0
 //---------------------------------------
 public void InitFirst(VOID_FUN_ENEMY _cb)
 {
     cbDeath = _cb;
 }