1234567891011121314151617181920212223 |
- using UnityEngine;
- namespace Fort23.Mono
- {
- public class UIToggleObjectActiveWidget : UIToggleWidgetBasic
- {
- public GameObject showObj;
- public GameObject hindObj;
- public override void Show()
- {
- showObj.SetActive(true);
- // ReSharper disable once Unity.NoNullPropagation
- hindObj.SetActive(false);
- }
- public override void Hind()
- {
- showObj.SetActive(false);
- // ReSharper disable once Unity.NoNullPropagation
- hindObj?.SetActive(true);
- }
- }
- }
|