public void PressToggle() { if (Controler) { Controler.ChangeFalloff(Id); } else if (Controler2) { Controler2.ChangeFalloff(Id); } }
public void PressToggle() { if (!gameObject.activeSelf || !ThisToggle.isOn) { return; } if (Controler) { Controler.ChangeFalloff(Id); } else if (Controler2) { Controler2.ChangeFalloff(Id); } }