Inheritance: UnityEngine.MonoBehaviour
示例#1
0
 // Use this for initialization
 void Start()
 {
     ep = GameObject.FindGameObjectWithTag("GameMaster").GetComponent<EndPoints>();
 }
示例#2
0
 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();
 }