overcomplicate

This commit is contained in:
NotAKidoS 2023-04-25 20:36:15 -05:00
parent b87047df2f
commit c42e28f340
3 changed files with 11 additions and 3 deletions

View file

@ -44,7 +44,6 @@ public class ThirdPerson : MelonMod
if (!Input.GetKey(KeyCode.LeftControl)) return;
if (Input.GetKeyDown(KeyCode.T)) State = !State;
if (!State || !Input.GetKeyDown(KeyCode.Y)) return;
int cycle = Input.GetKeyDown(KeyCode.LeftShift) ? -1 : 1;
RelocateCam((CameraLocation)(((int)CurrentLocation + cycle) % Enum.GetValues(typeof(CameraLocation)).Length), true);
RelocateCam((CameraLocation)(((int)CurrentLocation + (Input.GetKey(KeyCode.LeftShift) ? -1 : 1) + Enum.GetValues(typeof(CameraLocation)).Length) % Enum.GetValues(typeof(CameraLocation)).Length), true);
}
}