public void SetUpgrade(EVAUpgrade newUpgrade) { Upgrades |= newUpgrade; switch (newUpgrade) { case EVAUpgrade.Battery: EVA.UpgradePower(this); break; case EVAUpgrade.Oxygen: EVA.UpgradeOxygen(this); break; case EVAUpgrade.Toolbelt: PlayerInput.Instance.Loadout.UpgradeToBigToolbelt(); break; } }
public bool HasUpgrade(EVAUpgrade queryUpgrade) { return((Upgrades & queryUpgrade) != 0); }