Exemple #1
0
 public new void setVulnerability(bool value)
 {
     base.setVulnerability(value);
     if (_child)
     {
         _child.setVulnerability(value);
     }
 }
Exemple #2
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);
         }
     }
 }
Exemple #3
0
 /*
  * When Swirlie is destroyed, the Spike is now vulnerable
  */
 void OnDestroy()
 {
     _tailSpike.setVulnerability(true);
 }