Beispiel #1
0
    protected virtual void FollowToggle_OnValueChanged(bool value)
    {
        if (currentSheep != null)
        {
            if (value)
            {
                if (currentSheep.IsLookingOut())
                {
                    lookToggle.isOn = false;
                }

                currentSheep.Follow();
            }
            else
            {
                currentSheep.StopFollow();
            }
        }
    }