summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test 1/TestCamera.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Test 1/TestCamera.cs')
-rw-r--r--Assets/Scripts/Test 1/TestCamera.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Assets/Scripts/Test 1/TestCamera.cs b/Assets/Scripts/Test 1/TestCamera.cs
index 62b3a2d9..8e4ba89e 100644
--- a/Assets/Scripts/Test 1/TestCamera.cs
+++ b/Assets/Scripts/Test 1/TestCamera.cs
@@ -6,10 +6,9 @@ public class TestCamera : MonoBehaviour
{
public Vector3 offset = Vector3.zero;
- // Start is called before the first frame update
- void Start()
+ void Awake()
{
-
+ SceneManager.Instance.SetMainCamera(this.gameObject.GetComponent<Camera>());
}
// Update is called once per frame