예제 #1
0
 void Start()
 {
     if (_machine == null)
     {
         App.Service <UFlowSvc>().BuildController(this);
         if (_machine != null)
         {
             _machine.OnEnterState();
         }
     }
 }
예제 #2
0
        public UMachine InvokeMachine(string machineID)
        {
            UStateNode <UMachine, string> node = new UStateNode <UMachine, string>();

            node.Data = machineID;
            UMachine mac = BuildMachine(node);

            if (mac != null)
            {
                mac.OnEnterState();
            }
            return(mac);
        }