private void Awake() { Application.targetFrameRate = 45; Application.runInBackground = true; Input.multiTouchEnabled = false; Screen.sleepTimeout = SleepTimeout.NeverSleep; _inst = this; _gameObject = gameObject; _appConst = _gameObject.AddComponent <ApplicationConst>(); _gameObject.AddComponent <InputManager>(); _gameObject.AddComponent <SocketHandler>(); _gameObject.AddComponent <ServiceManager>(); PlatformSet(); SocketHandler.GetInst().Init(2); }
private void Awake() { Application.targetFrameRate = 45; Application.runInBackground = true; Input.multiTouchEnabled = false; Screen.sleepTimeout = SleepTimeout.NeverSleep; _inst = this; _gameObject = gameObject; _appConst = _gameObject.AddComponent <ApplicationConst>(); uiRoot.sizeDelta = ApplicationConst.uiSize; _gameObject.AddComponent <ResourceMgr>(); _gameObject.AddComponent <InputManager>(); _gameObject.AddComponent <SocketHandler>(); _gameObject.AddComponent <ServiceManager>(); _gameObject.AddComponent <FormulaManager>(); _gameObject.AddComponent <Database>(); PlatformSet(); }