Ejemplo n.º 1
0
        void Start()
        {
            _blasters = new WeaponStats("Blasters", 0.25f, 50);
            _rockets  = new WeaponStats("Rockets", 5f, 1);

            Debug.Log("Current Weapon Name: " + _blasters.name);
        }
Ejemplo n.º 2
0
 public void UpdateWeaponStats(WeaponStats weapon)
 {
     playerName.text += weapon.name;
     fireRate.text   += weapon.fireRate;
     ammoCount.text  += weapon.ammoCount;
 }
Ejemplo n.º 3
0
 void Start()
 {
     // assign a weapon to give to player upon collecting
     _blasters = new WeaponStats("Blaster", 0.25f, 50);
 }