Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 public bool HasUpgrade(EVAUpgrade queryUpgrade)
 {
     return((Upgrades & queryUpgrade) != 0);
 }