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(); }
private void Awake() { instance = this; }