/// <summary> /// ticks the state machine with the provided delta time /// </summary> public void Update(float deltaTime) { this.ElapsedTimeInState += deltaTime; this._states[EnumeratedStateMachine <TEnum, TContext> .ToInt(this.CurrentEnumeration)].Update(deltaTime); }
/// <summary> /// sets references to the shared context object and the parent machine then calls OnInitialized /// </summary> /// <param name="machine"></param> /// <param name="context"></param> internal void SetMachineAndContext(EnumeratedStateMachine <TEnum, TContext> machine, TContext context) { this.Machine = machine; this.Context = context; OnInitialized(); }