Inheritance: UnityEngine.MonoBehaviour
Example #1
0
 // Use this for initialization
 void Start()
 {
     ep = GameObject.FindGameObjectWithTag("GameMaster").GetComponent<EndPoints>();
 }
 void OnEnable()
 {
     am = GameObject.FindGameObjectWithTag("AudioManager").GetComponent<AudioManager>();
     pokesprite = GameObject.FindGameObjectWithTag("PokedexSprite");
     pokedex = GameObject.FindGameObjectWithTag("GameUI");
     ep = GameObject.FindGameObjectWithTag("GameMaster").GetComponent<EndPoints>();
     allOrbs = PlayerPrefs.GetInt ("CurrencyAmount");
     shopBut.text = LanguageManager.Instance.Get("Phrases/Shop");
     foundOrbs = ep.orbs;
     pokesprite.SetActive(false);
     UpdateOrbsUI();
 }