OnBeginState - ScriptObject

Member of: ScriptObject

Event called when the state the event is in has just been switched to. Note that this block will NOT be called for an auto state when the object is initialized.

SyntaxEdit

Event OnBeginState(string asOldState)

ParametersEdit

  • asOldState: The state that the script was in before it switched to the current one

ExampleEdit

State Running
  Event OnBeginState(string asOldState)
    Debug.Trace("Entered the running state from the " + asOldState + " state!")
  EndEvent
EndState

See AlsoEdit

OnEndState - ScriptObject