public void LevelUp(Level level, bool save = true) { Level = level; switch (level) { case Level.Run: StartCoroutine(ShowArmour("Tight")); LocomotionLevel = LocomotionLevel.OldRun; break; case Level.Jump: StartCoroutine(ShowArmour("Tight")); StartCoroutine(ShowArmour("Leg")); LocomotionLevel = LocomotionLevel.Run; break; case Level.Push: StartCoroutine(ShowArmour("Tight")); StartCoroutine(ShowArmour("Leg")); StartCoroutine(ShowArmour("Arm")); StartCoroutine(ShowArmour("Shoulder")); LocomotionLevel = LocomotionLevel.Run; break; case Level.Shoot: StartCoroutine(ShowArmour("Tight")); StartCoroutine(ShowArmour("Leg")); StartCoroutine(ShowArmour("Arm")); StartCoroutine(ShowArmour("Shoulder")); StartCoroutine(ShowArmour("Chest")); LocomotionLevel = LocomotionLevel.Run; break; } if (save) { SaveLevelStatus(); } }
public void ResetAllLevels() { Level = Level.Walk; LocomotionLevel = LocomotionLevel.Walk; SaveLevelStatus(); }