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

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