Пример #1
0
        void Start()
        {
            flyStick = GameObject.Find("Flystick");
            GUISynchronizer.Prepare();
            started = false;

            if (NodeInformation.type.Equals("slave"))
            {
                QualitySettings.vSyncCount = 0;
                node = new Client();
            }
            else
            {
                node = new Server(NodeInformation.numberOfSlaves);
            }
        }
Пример #2
0
        void Start()
        {
            flyStick = GameObject.Find("Flystick");
            GUISynchronizer.Prepare();
            started = false;

            if (!NodeInformation.isMaster())
            {
                QualitySettings.vSyncCount = 0;
                node = new Client();
            }
            else
            {
                node = new Server(NodeInformation.developmentMode ? 0 : NodeInformation.slaves.Count);
            }
        }