refactor: Removed Unnecessary Camera Viewport Assignment

This commit is contained in:
Syntriax 2024-01-30 12:59:57 +03:00
parent 4cb9c7dc8d
commit a734f52b38
1 changed files with 0 additions and 2 deletions

View File

@ -63,9 +63,7 @@ public class GamePong : Game
IGameObject gameObjectCamera = gameManager.InstantiateGameObject<GameObject>().SetGameObject("Camera"); ;
gameObjectCamera.BehaviourController.AddBehaviour<CameraController>();
cameraBehaviour = gameObjectCamera.BehaviourController.AddBehaviour<MonoGameCameraBehaviour>();
cameraBehaviour.Viewport = GraphicsDevice.Viewport;
////////////////////////////////////////////////////////////////////////////////////