Esempio n. 1
0
        static void Regist(CollectorPool pool, int idx)
        {
            Channel channel = new Channel(idx, string.Format("{0}#号PLC", idx));

            for (int idy = 0; idy < 82; idy++)
            {
                Target target = new Target(idy, string.Format("{0}#采集点", idy));
                pool.Regist(channel, target);
            }
        }
Esempio n. 2
0
 private void Awake()
 {
     collectorPool = FindObjectOfType <CollectorPool>();
     gates         = FindObjectOfType <DoorController>();
     elevator      = FindObjectOfType <ElevatorUp>();
 }