예제 #1
0
 protected override void Input(InputAction action)
 {
     if (action is ButtonInputAction)
     {
         ButtonInputAction temp = (ButtonInputAction)action;
         if (temp.Status)
         {
             active = true;
         }
         else
         {
             active = false;
         }
     }
 }
예제 #2
0
 protected override void Input(InputAction action)
 {
     if (action is ButtonInputAction)
     {
         buttA = (ButtonInputAction)action;
         if (buttA.Status)
         {
             State = StateToDraw.ButtonDown;
         }
         else if (buttA.Status != true)
         {
             State = StateToDraw.ButtonHover;
         }
     }
 }