public override void EnterStateHandler(params object[] addParams) { StateEnterTime = Time.realtimeSinceStartup; DeltaTimeBetweenPrevState = UIButtonUtilities.GetTotalMillisecondsBetween(StateEnterTime, (float)addParams[0]); FireOnEnterStateHandled(); }
public override void UpdateFrame() { if (CanUpdate) { if (UIButtonUtilities.GetTotalMillisecondsBetween(Time.realtimeSinceStartup, StateHandleTime) > Time.unscaledDeltaTime) { FireOnNewStateRequested(CommandEnum.Press); } } }