public void activeGame()
    {
        spawner = FindObjectOfType <PancakeSpawner>();

        Clock clock = FindObjectOfType <Clock>();

        clock.GaneStart = true;
        Camera.main.gameObject.SetActive(false);
        gameObject.SetActive(false);
        Soundmanager sm = FindObjectOfType <Soundmanager>();

        if (sm != null)
        {
            sm.StopBgm();
            sm.PlayBgmByName(StaticStrings.BattleSceneBGM);
        }
        spawner.startGame();
    }
Exemple #2
0
 private void Awake()
 {
     instance = this;
 }