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