Skip to content

Commit

Permalink
fix(PlayerCamera): Don't set mainCam null in ReleaseCamera
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed Nov 22, 2024
1 parent 497d52f commit 731084a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Assets/Mirror/Examples/_Common/Scripts/PlayerCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ void ReleaseCamera()

if (mainCam.gameObject.scene != SceneManager.GetActiveScene())
SceneManager.MoveGameObjectToScene(mainCam.gameObject, SceneManager.GetActiveScene());

mainCam = null;
}
}
}
Expand Down

0 comments on commit 731084a

Please sign in to comment.