Beispiel #1
0
        public void SetUp()
        {
            eventDispatcher = Substitute.For <IEventDispatcher> ();

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

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