refactor: Removed Unnecessary Camera Viewport Assignment
This commit is contained in:
parent
4cb9c7dc8d
commit
a734f52b38
|
@ -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;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Reference in New Issue