// Use this for initialization void Start() { gameManager = transform.GetComponent <GameManagerScriptGM>(); soundManager = transform.GetComponent <SoundManagerScriptGM>(); soundManager.SetSoundLevel(); gameButtons = new List <GameObject>(); menuButtons = new List <GameObject>(); size = gameManager.GetSize(); SetUpBackground(); SetUpButtons(); SetUpOPtionsPanel(); }
public void OnStateEnter(GameObject gO) { gM = gO.GetComponent <GameManagerScriptGM>(); gui = gO.GetComponent <GuiScriptGM>(); sM = gO.GetComponent <SoundManagerScriptGM>(); }