// Use this for initialization void Start () { gameControl = GameObject.Find("GameControl").GetComponent("GameControl") as GameControl; mod = gameObject.GetComponent<Modifier>(); boot_boom = PlayerPrefs.GetInt("Boot_Boom"); item_revive = PlayerPrefs.GetInt("Revive"); _fb = gameObject.GetComponent<GUIFB>(); }
// Use this for initialization void Start () { gameControl = GameObject.Find("GameControl").GetComponent("GameControl") as GameControl; gp = GameObject.Find("GameControl").GetComponent<GamePlay>(); mod = gameObject.GetComponent<Modifier>(); boot_rocket = PlayerPrefs.GetInt("Boot_Rocket"); if(AudioListener.volume > 0){ SoundIndex = 0; }else{ SoundIndex = 1; } _fb = gameObject.GetComponent<GUIFB>(); }
void Start () { fb = gameObject.GetComponent<GUIFB>(); mod = gameObject.GetComponent<Modifier>(); gp = GameObject.Find("GameControl").GetComponent<GamePlay>(); gc = GameObject.Find("GameControl").GetComponent("GameControl") as GameControl; }