// Start is called before the first frame update void Start() { inputManager = GetComponent <InputManager>(); ui = GameObject.FindGameObjectWithTag("UI").GetComponent <UI_Manager>(); glitch = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GlitchEffect>(); inputManager.Initialize(); ui.Initialize(); }
public void Initialize(Text t = null) { //backendManager.BackeEndTokenLogIn(); //backendManager.GetPlayerStat(); //backendManager.WelcomeNewUser(); //backendManager.GetFreshCarStat(); const string loadingString = "Loading. . .({0}%)"; wealthManager.Initialize(); if (t != null) { t.text = string.Format(loadingString, 92); } track_manager.Initialize(); if (t != null) { t.text = string.Format(loadingString, 93); } car_manager.Initialize(); if (t != null) { t.text = string.Format(loadingString, 94); } select_car.Initialize(); if (t != null) { t.text = string.Format(loadingString, 96); } select_map.Initialized(); if (t != null) { t.text = string.Format(loadingString, 98); } sound_manager.Initialized(); setting_manager.Initialized(); if (t != null) { t.text = string.Format(loadingString, 99); } //storeController가 널인 경우가 있는듯하다 if (IAPManager.storeController == null) { StartCoroutine(SCChecker()); } else { store_manager.Initialized(); } ui_manager.Initialize(); }