コード例 #1
0
        public override void EnterStateHandler(params object[] addParams)
        {
            StateEnterTime = Time.realtimeSinceStartup;

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

            FireOnEnterStateHandled();
        }
コード例 #2
0
ファイル: PressDownState.cs プロジェクト: mrvcmrvc/UMVC
 public override void UpdateFrame()
 {
     if (CanUpdate)
     {
         if (UIButtonUtilities.GetTotalMillisecondsBetween(Time.realtimeSinceStartup, StateHandleTime) > Time.unscaledDeltaTime)
         {
             FireOnNewStateRequested(CommandEnum.Press);
         }
     }
 }