Skip to content

Commit

Permalink
Delete trash that you forgot to erase
Browse files Browse the repository at this point in the history
  • Loading branch information
Snow1226 committed May 20, 2024
1 parent d35849f commit f5ae5f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions CameraPlus/CameraPlusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public class CameraPlusController : MonoBehaviour
protected EnvironmentSpawnRotation _environmentSpawnRotation;
internal float _beatLineManagerYAngle = 0;

internal bool _isBeatLeaderReplay = false;

private void Awake()
{
if (instance != null)
Expand Down Expand Up @@ -234,7 +232,7 @@ internal IEnumerator waitMainCamera()

private void OnFPFCToglleEvent()
{
if (isFPFC || _isBeatLeaderReplay)
if (isFPFC)
ScreenCamera.gameObject.SetActive(false);
else
ScreenCamera.gameObject.SetActive(true);
Expand Down
2 changes: 0 additions & 2 deletions CameraPlus/HarmonyPatches/MainCameraPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ namespace CameraPlus.HarmonyPatches
[HarmonyPatch(typeof(MainCamera))]
internal class MainCameraPatch
{
internal static bool isGameCameraEnable = false;
internal static Camera gameMainCamera = null;
[HarmonyPostfix]
[HarmonyPatch("Awake", 0)]
private static void OnEnablePostfix(Camera ____camera)
{
if (____camera.name == "MainCamera")
{
isGameCameraEnable = true;
gameMainCamera = ____camera;
}
}
Expand Down

0 comments on commit f5ae5f6

Please sign in to comment.