Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        gameHUD         = GameObject.Find("HUD").GetComponent <GameHUD>();
        howToPlayScreen = gameHUD.GetComponentInChildren <HowToPlayScreen>();
        gameOverScreen  = gameHUD.GetComponentInChildren <GameOverScreen>();

        gameCamera = Camera.main.GetComponent <GameCamera>();

        AudioSource = GetComponent <AudioSource>();

        SoundManager.Instance.PlayGameMusic(GameDataManager.Instance.IsSound);
    }