//private Animator anim; //private bool activeFire; // Start is called before the first frame update void Start() { activeMap = false; //activeFire = true; //anim = fire.GetComponent<Animator>(); pc = GetComponent <PlayerController>(); inventory = GetComponent <FireInventory>(); mapAnim = mapIcon.GetComponent <Animator>(); }
private void Start() { inventory = GetComponent <FireInventory>(); if (LevelManager.level != 0) { xp = LevelManager.exp; armor = LevelManager.armor; health = LevelManager.health; OnValueChanged.Invoke(); } anim = GetComponent <Animator>(); }
// Start is called before the first frame update //void Start() //{ // inventory = GameObject.FindGameObjectWithTag("Player").GetComponent<FireInventory>(); //} private void Awake() { inventory = GameObject.FindGameObjectWithTag("Player").GetComponent<FireInventory>(); }
private void Awake() { pr = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerResources>(); inv = GameObject.FindGameObjectWithTag("Player").GetComponent <FireInventory>(); }