コード例 #1
0
    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;
            }
        }
    }
コード例 #2
0
 void OnEnable()
 {
     index = 0;
     if (gameController == null)
     {
         gameController = transform.parent.GetComponentInChildren <Flight_GameController>();
     }
 }
コード例 #3
0
	void Start ()
	{
		GameObject gameControllerObject = GameObject.FindGameObjectWithTag ("GameController");
		if (gameControllerObject != null)
		{
			gameController = gameControllerObject.GetComponent <Flight_GameController>();
		}
		if (gameController == null)
		{
			Debug.Log ("Cannot find 'GameController' script");
		}
	}
コード例 #4
0
    void Start()
    {
        GameObject gameControllerObject = GameObject.FindGameObjectWithTag("GameController");

        if (gameControllerObject != null)
        {
            gameController = gameControllerObject.GetComponent <Flight_GameController>();
        }
        if (gameController == null)
        {
            Debug.Log("Cannot find 'GameController' script");
        }
    }
コード例 #5
0
	void OnEnable()
	{
		index = 0;
		if(gameController == null)
			gameController = transform.parent.GetComponentInChildren<Flight_GameController>();
	}