예제 #1
0
 public void Update()
 {
     if (inputGenerator.GeneratedLongPress())
     {
         if (LongPressExecuted != null)
         {
             LongPressExecuted();
         }
     }
     if (inputGenerator.GeneratedTap())
     {
         if (TapExecuted != null)
         {
             TapExecuted();
         }
     }
 }
예제 #2
0
 public void TestIsDoingLongPress()
 {
     generator.GeneratedLongPress().Returns(true);
     inputReader.LongPressExecuted += HandleActionExecuted;
     AssertActionWasCalled();
 }