protected override void UnsubscribeFromEvents() { InputListener.GetInstance().OnMouse0_Down -= OnLeftMouseDown; InputListener.GetInstance().OnMouse0_Up -= OnLeftMouseUp; InputListener.GetInstance().OnMouse1_Down -= SwitchToDefaultState; SelectionTracker.GetInstance().OnAreaChange -= OnAreaChange; }
protected override void SubscribeToEvents() { InputListener.GetInstance().OnMouse0_Down += OnLeftClickDown; InputListener.GetInstance().OnMouse0_Up += OnLeftClickUp; InputListener.GetInstance().OnMouse1_Down += SwitchToDefaultState; InputListener.GetInstance().OnEscape_Down += SwitchToDefaultState; SelectionTracker.GetInstance().OnAreaChange += OnAreaChange; }
private void UnsubscribeFromInput() { InputListener input = InputListener.GetInstance(); input.OnW_Pressed -= MoveUp; input.OnA_Pressed -= MoveLeft; input.OnS_Pressed -= MoveDown; input.OnD_Pressed -= MoveRight; }
protected override void UnsubscribeFromEvents() { InputListener.GetInstance().OnMouse0_Down -= OnLeftMouseButtonDown; InputListener.GetInstance().OnMouse1_Down -= OnRightMouseButtonDown; }
protected override void Awake() { FindWindows(); InputListener.GetInstance().OnEscape_Down += CloseWindows; }
private void OnDestroy() => InputListener.GetInstance().OnEscape_Down -= CloseWindows;
private void Start() { InputListener.GetInstance().OnTab_Up += SwitchCommandWindow; }
protected override void SubscribeToEvents() { InputListener.GetInstance().OnMouse0_Down += OnLeftMouseButtonDown; InputListener.GetInstance().OnMouse0_Up += OnLeftMouseButtonUp; }