diff --git a/Assets/Mirror/Examples/AdditiveLevels/Scripts/PlayerCamera.cs b/Assets/Mirror/Examples/AdditiveLevels/Scripts/PlayerCamera.cs deleted file mode 100644 index f0e396869..000000000 --- a/Assets/Mirror/Examples/AdditiveLevels/Scripts/PlayerCamera.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; - -// This sets up the scene camera for the local player - -namespace Mirror.Examples.AdditiveLevels -{ - public class PlayerCamera : NetworkBehaviour - { - Camera mainCam; - - void Awake() - { - mainCam = Camera.main; - } - - public override void OnStartLocalPlayer() - { - if (mainCam != null) - { - // configure and make camera a child of player with 3rd person offset - mainCam.orthographic = false; - mainCam.transform.SetParent(transform); - mainCam.transform.localPosition = new Vector3(0f, 3f, -8f); - mainCam.transform.localEulerAngles = new Vector3(10f, 0f, 0f); - } - else - Debug.LogWarning("PlayerCamera: Could not find a camera in scene with 'MainCamera' tag."); - } - - public override void OnStopLocalPlayer() - { - if (mainCam != null) - { - mainCam.transform.SetParent(null); - SceneManager.MoveGameObjectToScene(mainCam.gameObject, SceneManager.GetActiveScene()); - mainCam.orthographic = true; - mainCam.orthographicSize = 15f; - mainCam.transform.localPosition = new Vector3(0f, 70f, 0f); - mainCam.transform.localEulerAngles = new Vector3(90f, 0f, 0f); - } - } - } -} diff --git a/Assets/Mirror/Examples/AdditiveLevels/Scripts/PlayerCamera.cs.meta b/Assets/Mirror/Examples/AdditiveLevels/Scripts/PlayerCamera.cs.meta deleted file mode 100644 index c70cb63e2..000000000 --- a/Assets/Mirror/Examples/AdditiveLevels/Scripts/PlayerCamera.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 22976424f775a0f4a8531e6713ff6de2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Mirror/Examples/AdditiveScenes/Scripts/PlayerCamera.cs b/Assets/Mirror/Examples/AdditiveScenes/Scripts/PlayerCamera.cs deleted file mode 100644 index 2f9e5113f..000000000 --- a/Assets/Mirror/Examples/AdditiveScenes/Scripts/PlayerCamera.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; - -// This sets up the scene camera for the local player - -namespace Mirror.Examples.AdditiveScenes -{ - public class PlayerCamera : NetworkBehaviour - { - Camera mainCam; - - void Awake() - { - mainCam = Camera.main; - } - - public override void OnStartLocalPlayer() - { - if (mainCam != null) - { - // configure and make camera a child of player with 3rd person offset - mainCam.orthographic = false; - mainCam.transform.SetParent(transform); - mainCam.transform.localPosition = new Vector3(0f, 3f, -8f); - mainCam.transform.localEulerAngles = new Vector3(10f, 0f, 0f); - } - else - Debug.LogWarning("PlayerCamera: Could not find a camera in scene with 'MainCamera' tag."); - } - - public override void OnStopLocalPlayer() - { - if (mainCam != null) - { - mainCam.transform.SetParent(null); - SceneManager.MoveGameObjectToScene(mainCam.gameObject, SceneManager.GetActiveScene()); - mainCam.orthographic = true; - mainCam.orthographicSize = 15f; - mainCam.transform.localPosition = new Vector3(0f, 70f, 0f); - mainCam.transform.localEulerAngles = new Vector3(90f, 0f, 0f); - } - } - } -} diff --git a/Assets/Mirror/Examples/AdditiveScenes/Scripts/PlayerCamera.cs.meta b/Assets/Mirror/Examples/AdditiveScenes/Scripts/PlayerCamera.cs.meta deleted file mode 100644 index 36a243fc1..000000000 --- a/Assets/Mirror/Examples/AdditiveScenes/Scripts/PlayerCamera.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 437e9ed1a55931845bef07e2f5ef57e0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/PlayerCamera.cs b/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/PlayerCamera.cs deleted file mode 100644 index 232a9df67..000000000 --- a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/PlayerCamera.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; - -// This sets up the scene camera for the local player - -namespace Mirror.Examples.MultipleAdditiveScenes -{ - public class PlayerCamera : NetworkBehaviour - { - Camera mainCam; - - void Awake() - { - mainCam = Camera.main; - } - - public override void OnStartLocalPlayer() - { - if (mainCam != null) - { - // configure and make camera a child of player with 3rd person offset - mainCam.orthographic = false; - mainCam.transform.SetParent(transform); - mainCam.transform.localPosition = new Vector3(0f, 3f, -8f); - mainCam.transform.localEulerAngles = new Vector3(10f, 0f, 0f); - } - else - Debug.LogWarning("PlayerCamera: Could not find a camera in scene with 'MainCamera' tag."); - } - - public override void OnStopLocalPlayer() - { - if (mainCam != null) - { - mainCam.transform.SetParent(null); - SceneManager.MoveGameObjectToScene(mainCam.gameObject, SceneManager.GetActiveScene()); - mainCam.orthographic = true; - mainCam.orthographicSize = 15f; - mainCam.transform.localPosition = new Vector3(0f, 70f, 0f); - mainCam.transform.localEulerAngles = new Vector3(90f, 0f, 0f); - } - } - } -} diff --git a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/PlayerCamera.cs.meta b/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/PlayerCamera.cs.meta deleted file mode 100644 index 6d4a9c952..000000000 --- a/Assets/Mirror/Examples/MultipleAdditiveScenes/Scripts/PlayerCamera.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6cac48dc20f866148b44d0f9b5850761 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Mirror/Examples/TankTheftAuto/Scripts/PlayerCamera.cs b/Assets/Mirror/Examples/TankTheftAuto/Scripts/PlayerCamera.cs deleted file mode 100644 index a60ac030d..000000000 --- a/Assets/Mirror/Examples/TankTheftAuto/Scripts/PlayerCamera.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; - -// This sets up the scene camera for the local player - -namespace Mirror.Examples.TankTheftAuto -{ - public class PlayerCamera : NetworkBehaviour - { - Camera mainCam; - - void Awake() - { - mainCam = Camera.main; - } - - public override void OnStartLocalPlayer() - { - if (mainCam != null) - { - // configure and make camera a child of player with 3rd person offset - mainCam.orthographic = false; - mainCam.transform.SetParent(transform); - mainCam.transform.localPosition = new Vector3(0f, 6f, -11f); - mainCam.transform.localEulerAngles = new Vector3(25f, 0f, 0f); - } - else - Debug.LogWarning("PlayerCamera: Could not find a camera in scene with 'MainCamera' tag."); - } - - public override void OnStopLocalPlayer() - { - if (mainCam != null) - { - mainCam.transform.SetParent(null); - SceneManager.MoveGameObjectToScene(mainCam.gameObject, SceneManager.GetActiveScene()); - mainCam.orthographic = true; - mainCam.orthographicSize = 15f; - mainCam.transform.localPosition = new Vector3(0f, 70f, 0f); - mainCam.transform.localEulerAngles = new Vector3(90f, 0f, 0f); - } - } - } -} diff --git a/Assets/Mirror/Examples/TankTheftAuto/Scripts/PlayerCamera.cs.meta b/Assets/Mirror/Examples/TankTheftAuto/Scripts/PlayerCamera.cs.meta deleted file mode 100644 index 2c010ce75..000000000 --- a/Assets/Mirror/Examples/TankTheftAuto/Scripts/PlayerCamera.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 63e14aef4c7ed463f9d4f8ef03d98cf9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: