diff options
Diffstat (limited to 'Assets/Scripts/Test 1/TestCamera.cs')
-rw-r--r-- | Assets/Scripts/Test 1/TestCamera.cs | 5 |
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
|