public static unregister ( BigBadGuy, bbg ) : void | ||
bbg | BigBadGuy, | |
return | void |
void OnParticleCollision(GameObject obj) { AmpicillinCollider collider = obj.GetComponent <AmpicillinCollider> (); if (null != collider) { Vector3 newScale = Vector3.Max(transform.localScale - new Vector3(step, step, step), Vector3.zero); transform.localScale = newScale; life--; if (life == 0) { EnemiesManager.unregister(this); Destroy(gameObject); } } }