void Start() { RoundCounter.Value = 0; ComponentScript.Init(transform.GetChild(0).gameObject, transform.GetChild(1).gameObject, transform.GetChild(2).gameObject, transform.GetChild(3).gameObject, transform.GetChild(4).gameObject, transform.GetChild(5).gameObject); //set default settings _onlineMode = false; StartScreen(PlayerPrefs.GetInt("menu_state")); }
public void UnstickAll(bool player) { foreach (GameObject i in MenuObjects) { try { ComponentScript b = i.GetComponent <ComponentScript>(); if (b.Sticky) { //b.setPlayer(player); b.Unstick(); } } catch { } } }