Ejemplo n.º 1
0
        public void SetUp()
        {
            eventDispatcher = Substitute.For <IEventDispatcher> ();

            calculateTouchCommand = new CalculateTouchCommand();
            calculateTouchCommand.eventDispatcher = eventDispatcher;

            eventDispatcher.CleanAndDestroy();
        }
Ejemplo n.º 2
0
 public void OnInject()
 {
     calculateTouchCommand = commandFactory.Build <CalculateTouchCommand> ();
     eventDispatcher.AddListener <Vector3> (TouchMessage.CALCULATE_TOUCH, CalculateTouch);
 }