Ejemplo n.º 1
0
 /*
  * When Spike is hit, destroys last spike and sets vulnerability to parent spike
  */
 void OnDestroy()
 {
     if (this != _head)
     {
         _parent.setVulnerability(true);
         _parent.RemoveSpike(this);
         if (_child != null)
         {
             Destroy(_child.gameObject);
         }
     }
 }