示例#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);
 }