Example #1
0
    public MisileSO GetWeapon(int weaponNum)
    {
        var      listWeapons = new List <MisileSO>(weapons);
        MisileSO misile      = listWeapons.Find(x => x.weaponNum == weaponNum);

        return(misile);
    }
Example #2
0
 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;
 }
Example #3
0
 public virtual void EquipWeapon(MisileSO weapon)
 {
     currentWeapon = weapon;
 }