void Start() { ButtonDown.OnClick.Add(DialogSystem, PressDown); ButtonUp.OnClick.Add(DialogSystem, PressUp); ButtonForgetIt.OnClick.Add(DialogSystem, DialogSystem.Hide); ButtonETrigger.AddListener(ToggleDialog); ButtonETrigger.Window.OnHidden += DialogSystem.Hide; }
public void OpenDoor() { if (!HasQuickedFirstDoor) { return; } Animation.Open(); ButtonETrigger.Window.Hide(); ButtonETrigger.SwitchOff(); ButtonETrigger.SetState(UiStateEntity.State.Inactive); }
void Start() { ButtonETrigger.AddListener(ToggleDialog); ButtonETrigger.Window.OnHidden += DialogSystem.Hide; }
void Start() => ButtonETrigger.SetState(UiStateEntity.State.Inactive);
//-------------------------------------------------------------------------------------------------------------- public void OnQuickFirstDoor() => ButtonETrigger.SetState(UiStateEntity.State.Off);