Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (_picking)
     {
         _collectionTime += Time.deltaTime;
         if (_collectionTime > _playerData._collectionTime)
         {
             PickResource();
             _collectionTime = 0;
         }
     }
     ListenKeyboard();
     ListenMouse();
     _buffs.CheckBuffs();
     _hpText.text = _health.ToString() + "/" + _maxHealth;
 }