Beispiel #1
0
 // 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));
 }
Beispiel #2
0
 // 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;
     }
 }
Beispiel #3
0
    private void Awake()
    {
        if (ss != null)
        {
            Destroy(ss.gameObject);
            ss = this;
        }
        else
        {
            ss = this;
        }
        DontDestroyOnLoad(this);

        SetupSounds();
    }
 void Awake()
 {
     instance = this;
 }
Beispiel #5
0
 private void Start()
 {
     CreditsScreen.SetActive(false);
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
 }
Beispiel #6
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
 }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     CoinText.text  = "" + PlayerPrefs.GetInt("Coins");
 }
Beispiel #8
0
 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>();
 }
Beispiel #10
0
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
 }
Beispiel #11
0
 // Start is called before the first frame update
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     theGiftScript  = FindObjectOfType <GiftManager>().GetComponent <GiftManager>();
 }
Beispiel #12
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     theGiftScript  = FindObjectOfType <GiftManager>().GetComponent <GiftManager>();
 }
Beispiel #13
0
 // Start is called before the first frame update
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     PlayerPrefs.SetInt("GuessItDifficulty", 0);
     PlayerPrefs.SetInt("MatchItDifficulty", 0);
 }
Beispiel #14
0
 private void Awake()
 {
     theSoundScript   = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     StarCountChecked = false;
 }
Beispiel #15
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     LevelChecked   = false;
     LevelUnlocked  = PlayerPrefs.GetInt("CampaignLevelUnlocked");
 }
    public static SoundsScript FindSoundController()
    {
        SoundsScript sc = FindObjectOfType <SoundsScript>();

        return(sc);
    }