- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 14
 
State
        GMIKE edited this page Mar 11, 2020 
        ·
        15 revisions
      
     //Throw exeption if state already exist
 State state1 = stateMachine.AddState("State1");
 //Return null if state already exist
 State state1 = stateMachine.TryAddState("State1", out bool result); //Throw exeption if state not found
 State state1 = stateMachine.GetState("State1");
 //Return null if state not found
 State state1 = stateMachine.TryGetState("State1", out bool result); //Throw exeption if state not found
 stateMachine.DeleteState("State1");
 stateMachine.TryDeleteState("State1"); //Throw exeption if state not found
 stateMachine.DeleteState(state1);
 stateMachine.TryDeleteState(state1);
 //Throw exeption if state already delete from state machine
 state1.Delete();
 state1.TryDelete(out bool result);