Example #1
0
        public XFsmComponent()
        {
            XFsmStateComponent startState = new XFsmStateComponent();

            startState.name = "Start";
            RegistState(startState);
        }
Example #2
0
 public void UngistState(XFsmStateComponent state)
 {
     if (fsmState.Count > 0)
     {
         state.OnwerFsm = null;
         fsmState.Remove(state);
     }
 }
Example #3
0
 public void RegistState(XFsmStateComponent state)
 {
     state.OnwerFsm = this;
     fsmState.Add(state as XFsmStateComponent);
 }