// Start is called before the first frame update void Start() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); Difficulty = PlayerPrefs.GetInt("GuessItDifficulty"); CurrentLevel = 1; SetupLevel(Random.Range(0, 5)); }
// Start is called before the first frame update void Start() { sc = SoundsScript.FindSoundController(); switch (gameObject.tag) { //creates the health bar just for the player case "Player": healthBar.SetMaxHealth(hp); break; } }
private void Awake() { if (ss != null) { Destroy(ss.gameObject); ss = this; } else { ss = this; } DontDestroyOnLoad(this); SetupSounds(); }
void Awake() { instance = this; }
private void Start() { CreditsScreen.SetActive(false); theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); }
private void Awake() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); }
// Start is called before the first frame update void Start() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); CoinText.text = "" + PlayerPrefs.GetInt("Coins"); }
private void Awake() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); theSoundScript.PlayBGM(1); CoinText.text = "" + PlayerPrefs.GetInt("Coins"); }
private void Awake() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); TheEliminationManager = FindObjectOfType <EliminationGameManager>().GetComponent <EliminationGameManager>(); }
void Start() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); }
// Start is called before the first frame update void Start() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); theGiftScript = FindObjectOfType <GiftManager>().GetComponent <GiftManager>(); }
private void Awake() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); theGiftScript = FindObjectOfType <GiftManager>().GetComponent <GiftManager>(); }
// Start is called before the first frame update void Start() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); PlayerPrefs.SetInt("GuessItDifficulty", 0); PlayerPrefs.SetInt("MatchItDifficulty", 0); }
private void Awake() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); StarCountChecked = false; }
private void Awake() { theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>(); LevelChecked = false; LevelUnlocked = PlayerPrefs.GetInt("CampaignLevelUnlocked"); }
public static SoundsScript FindSoundController() { SoundsScript sc = FindObjectOfType <SoundsScript>(); return(sc); }