示例#1
0
    // Use this for initialization
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
        player.levelController = this;
        gameController         = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerBreathe>();

        if (gameController.currentWeather != weather)
        {
            gameController.currentWeather = weather;
        }
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     cameraScript   = GetComponentInChildren <CameraScript>();
     gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerBreathe>();
     uiController   = GameObject.FindGameObjectWithTag("UIController").GetComponent <UIController>();
 }