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