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

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