Ejemplo n.º 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));
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 3
0
    private void Awake()
    {
        if (ss != null)
        {
            Destroy(ss.gameObject);
            ss = this;
        }
        else
        {
            ss = this;
        }
        DontDestroyOnLoad(this);

        SetupSounds();
    }
Ejemplo n.º 4
0
 void Awake()
 {
     instance = this;
 }
Ejemplo n.º 5
0
 private void Start()
 {
     CreditsScreen.SetActive(false);
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
 }
Ejemplo n.º 6
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
 }
Ejemplo n.º 7
0
 // Start is called before the first frame update
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     CoinText.text  = "" + PlayerPrefs.GetInt("Coins");
 }
Ejemplo n.º 8
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     theSoundScript.PlayBGM(1);
     CoinText.text = "" + PlayerPrefs.GetInt("Coins");
 }
Ejemplo n.º 9
0
 private void Awake()
 {
     theSoundScript        = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     TheEliminationManager = FindObjectOfType <EliminationGameManager>().GetComponent <EliminationGameManager>();
 }
Ejemplo n.º 10
0
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
 }
Ejemplo n.º 11
0
 // Start is called before the first frame update
 void Start()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     theGiftScript  = FindObjectOfType <GiftManager>().GetComponent <GiftManager>();
 }
Ejemplo n.º 12
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     theGiftScript  = FindObjectOfType <GiftManager>().GetComponent <GiftManager>();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 14
0
 private void Awake()
 {
     theSoundScript   = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     StarCountChecked = false;
 }
Ejemplo n.º 15
0
 private void Awake()
 {
     theSoundScript = FindObjectOfType <SoundsScript>().GetComponent <SoundsScript>();
     LevelChecked   = false;
     LevelUnlocked  = PlayerPrefs.GetInt("CampaignLevelUnlocked");
 }
Ejemplo n.º 16
0
    public static SoundsScript FindSoundController()
    {
        SoundsScript sc = FindObjectOfType <SoundsScript>();

        return(sc);
    }