Example #1
0
    protected virtual void LookToggle_OnValueChanged(bool value)
    {
        if (currentSheep != null)
        {
            if (value)
            {
                if (currentSheep.IsFollowing())
                {
                    followToggle.isOn = false;
                }

                currentSheep.LookOut();
            }
            else
            {
                currentSheep.StopLookOut();
            }
        }
    }