Exemple #1
0
    public void Awake()
    {
        startButtonListeners      = new Dictionary <int, ButtonListener>();
        endButtonListeners        = new Dictionary <int, ButtonListener>();
        continuousButtonListeners = new Dictionary <int, ButtonListener>();
        pendingButtons            = new HashSet <InputButton>();
        pressedButtons            = new HashSet <InputButton>();

        movementListener      = null;
        mouseMovementListener = null;
    }
Exemple #2
0
 //only main thread
 private void EmitMoveEvent(NavAgent agent, bool isFound, AgentRemote enemy)
 {
     if (isFound)
     {
         MovementListener.Move(
             agent.GetMovePath(),
             agent.GetTimes(),
             agent.CurrentPosition,
             agent.Remote,
             enemy);
     }
 }
Exemple #3
0
 public void registerMovementListener(MovementListener movementListener)
 {
     this.movementListener = movementListener;
 }
Exemple #4
0
 public void AddMovementListener(MovementListener listener)
 {
     m_movementListeners.Add(listener);
 }