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