public MisileSO GetWeapon(int weaponNum) { var listWeapons = new List <MisileSO>(weapons); MisileSO misile = listWeapons.Find(x => x.weaponNum == weaponNum); return(misile); }
public void ReadStats(PlayerStats stats, Weapon weapon) { LivesRemaining = stats.LivesRemaining; maxHp = stats.maxHp; armor = stats.armor; currentHp = stats.currentHp; speed = stats.speed; rotSpeed = stats.rotSpeed; drag = stats.drag; currentWeapon = weapon.currentWeapon; }
public virtual void EquipWeapon(MisileSO weapon) { currentWeapon = weapon; }