Esempio n. 1
0
    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;
    }
Esempio n. 3
0
    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;
 }
Esempio n. 5
0
 protected override void Awake()
 {
     FindWindows();
     InputListener.GetInstance().OnEscape_Down += CloseWindows;
 }
Esempio n. 6
0
 private void OnDestroy() => InputListener.GetInstance().OnEscape_Down -= CloseWindows;
Esempio n. 7
0
 private void Start()
 {
     InputListener.GetInstance().OnTab_Up += SwitchCommandWindow;
 }
 protected override void SubscribeToEvents()
 {
     InputListener.GetInstance().OnMouse0_Down += OnLeftMouseButtonDown;
     InputListener.GetInstance().OnMouse0_Up   += OnLeftMouseButtonUp;
 }