public void EquipWeapon(string name) { finishEquipment(); EquippedShield = null; if (name == null) { EquippedWeapon = null; } else { EquippedWeapon = ResourceManager.GetNewWeapon(name); } updateBattleEntitySkeleton(); setBattleEntityIdleAnimation(); }