protected virtual void LookToggle_OnValueChanged(bool value) { if (currentSheep != null) { if (value) { if (currentSheep.IsFollowing()) { followToggle.isOn = false; } currentSheep.LookOut(); } else { currentSheep.StopLookOut(); } } }
protected virtual void Sheep_OnSelection(SheepSelector s) { currentSheep = s.GetController(); if (currentSheep != null) { currentSheep.OnMoveOrder += Sheep_OnMoveOrder; followToggle.SetIsOnWithoutNotify(currentSheep.IsFollowing()); lookToggle.SetIsOnWithoutNotify(currentSheep.IsLookingOut()); } }
void Sheep_OnSelect() { if (sheepController != null) { if (sheepController.IsFollowing()) { followCircle.SetActive(true); } if (sheepController.IsLookingOut()) { lookCircle.SetActive(true); } } }