Пример #1
0
    void Start()
    {
        if (StaticGameData.isMusicOn)
        {
            GetComponent <AudioSource>().volume = 0.775f;
        }
        else
        {
            GetComponent <AudioSource>().volume = 0;
        }
        Screen.fullScreen              = true;
        StaticGameData.Game            = StaticGameData.getNewGame();
        StaticGameData.winSoundEffect  = this.winSoundEffect;
        StaticGameData.lossSoundEffect = this.lossSoundEffect;

        StaticGameData.saveHighScore();
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     StaticGameData.saveHighScore();
     GameObject.Find("Score").GetComponent <Text>().text     = "" + StaticGameData.Game.Points;
     GameObject.Find("HighScore").GetComponent <Text>().text = "" + StaticGameData.getHighScore();
 }