예제 #1
0
        void Start()
        {
            _blasters = new WeaponStats("Blasters", 0.25f, 50);
            _rockets  = new WeaponStats("Rockets", 5f, 1);

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