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

        if (Controler)
        {
            Controler.ChangeFalloff(Id);
        }
        else if (Controler2)
        {
            Controler2.ChangeFalloff(Id);
        }
    }