public void Initialize() { isGuide = PlayerManager.Instance.GetCharCounterData().GetFlag(4); flightDataList = ConfigManager.Instance.GetFlightGameConfigTable().FlightConfigList; frequency = 0f; if (gameController == null) { gameController = transform.GetComponentInChildren <Flight_GameController>(); } StartSetStageState(StageState.FlyUp); if (uiRoot == null) { uiRoot = transform.GetComponentInChildren <UIRoot>(); } uiRoot.gameObject.SetActive(true); //1111111111 if (AdaptiveDifficultyManager.Instance != null) { GameDifficulty result = AdaptiveDifficultyManager.Instance.GetGameDifficulty("ObsFreq", 40); SetDifficultyFrequency(result); } if (gameController != null && WindowManager.Instance.UIWindowCameraRoot != null) { if (gameController.uiManager != null) { gameController.uiManager.transform.parent = WindowManager.Instance.UIWindowCameraRoot.transform; gameController.uiManager.transform.localPosition = Vector3.zero; } } }
void OnEnable() { index = 0; if (gameController == null) { gameController = transform.parent.GetComponentInChildren <Flight_GameController>(); } }
void Start () { GameObject gameControllerObject = GameObject.FindGameObjectWithTag ("GameController"); if (gameControllerObject != null) { gameController = gameControllerObject.GetComponent <Flight_GameController>(); } if (gameController == null) { Debug.Log ("Cannot find 'GameController' script"); } }
void Start() { GameObject gameControllerObject = GameObject.FindGameObjectWithTag("GameController"); if (gameControllerObject != null) { gameController = gameControllerObject.GetComponent <Flight_GameController>(); } if (gameController == null) { Debug.Log("Cannot find 'GameController' script"); } }
void OnEnable() { index = 0; if(gameController == null) gameController = transform.parent.GetComponentInChildren<Flight_GameController>(); }