Function setTransition

  • enable/disable the transition to a particular state (by default enabled for all)

    Parameters

    • state: number

      State ID (see constants)

    • enable: boolean

    Returns void

    setTransition

    state