Пример #1
0
        public void Start()
        {
            EngineConfiguration.Instance.AssemblyName            = AssemblyName;
            EngineConfiguration.Instance.Ip                      = ReceptionistIp;
            EngineConfiguration.Instance.Port                    = ReceptionistPort;
            EngineConfiguration.Instance.TargetFps               = TargetFps;
            EngineConfiguration.Instance.FixedUpdateRate         = FixedUpdateRate;
            EngineConfiguration.Instance.UsePrefabPooling        = UsePrefabPooling;
            EngineConfiguration.Instance.PrefabToPool            = Prepool();
            EngineConfiguration.Instance.EngineType              = EngineTypeUtils.ToEngineName(EngineType);
            EngineConfiguration.Instance.UseInstrumentation      = false;
            EngineConfiguration.Instance.IsDebugMode             = false;
            EngineConfiguration.Instance.LinkProtocol            = LinkProtocol;
            EngineConfiguration.Instance.AppName                 = "nordic_gamejam";
            EngineConfiguration.Instance.MsgProcessLimitPerFrame = 0;
            EngineConfiguration.Instance.Log4netConfigXml        = "log4net-local.xml";

            EngineLifecycleManager.StartGame(this, gameObject);
        }
Пример #2
0
        public void Start()
        {
            var engineConfiguration = EngineConfiguration.Instance;

            {
                engineConfiguration.Ip                      = ReceptionistIp;
                engineConfiguration.Port                    = ReceptionistPort;
                engineConfiguration.TargetFps               = TargetFps;
                engineConfiguration.FixedUpdateRate         = FixedUpdateRate;
                engineConfiguration.UsePrefabPooling        = UsePrefabPooling;
                engineConfiguration.PrefabToPool            = Prepool();
                engineConfiguration.EngineType              = EngineTypeUtils.ToEngineName(EngineType);
                engineConfiguration.UseInstrumentation      = true;
                engineConfiguration.IsDebugMode             = true;
                engineConfiguration.LinkProtocol            = LinkProtocol;
                engineConfiguration.AppName                 = "demo";
                engineConfiguration.MsgProcessLimitPerFrame = 0;
                engineConfiguration.Log4netConfigXml        = "log4net-local.xml";
                engineConfiguration.ShouldReconnect         = true;
                engineConfiguration.AssemblyName            = "";
            };
            EngineLifecycleManager.StartGame(this, gameObject, engineConfiguration);
        }