public override void EnterStateHandler(params object[] addParams)
        {
            StateEnterTime = Time.realtimeSinceStartup;

            DeltaTimeBetweenPrevState = UIButtonUtilities.GetTotalMillisecondsBetween(StateEnterTime, (float)addParams[0]);

            FireOnEnterStateHandled();
        }
Ejemplo n.º 2
0
 public override void UpdateFrame()
 {
     if (CanUpdate)
     {
         if (UIButtonUtilities.GetTotalMillisecondsBetween(Time.realtimeSinceStartup, StateHandleTime) > Time.unscaledDeltaTime)
         {
             FireOnNewStateRequested(CommandEnum.Press);
         }
     }
 }