Пример #1
0
    //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>();
    }
Пример #2
0
 private void Start()
 {
     inventory = GetComponent <FireInventory>();
     if (LevelManager.level != 0)
     {
         xp     = LevelManager.exp;
         armor  = LevelManager.armor;
         health = LevelManager.health;
         OnValueChanged.Invoke();
     }
     anim = GetComponent <Animator>();
 }
Пример #3
0
 // 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>();
 }
Пример #4
0
 private void Awake()
 {
     pr  = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerResources>();
     inv = GameObject.FindGameObjectWithTag("Player").GetComponent <FireInventory>();
 }