示例#1
0
    private void Init()
    {
        uiHolder.Init();

        playerInfo.coins   = 0;
        playerInfo.stars   = 0;
        playerInfo.score   = 0;
        playerInfo.life    = 1;
        playerInfo.canMove = false;
        AudioManager.instance.Play("background");
        roundCharacter = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterScript>();
        //   GoToRunning();

        uiHolder.HandleCoinBar(playerInfo.coins, totalCoins);
    }
示例#2
0
 private void Init()
 {
     obstacleSpawner.Init();
     background.Init();
     uiHolder.Init();
 }