summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Scene/MainCamera.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-20 00:42:33 +0800
committerchai <chaifix@163.com>2021-09-20 00:42:33 +0800
commit02b44c07adfcf921da594120b4cd8fc18b982725 (patch)
tree723e001ed8c5f7c39419cc4a50a3202a0cf59961 /Assets/Scripts/Scene/MainCamera.cs
parentd4581317f904b870c482a3274e7cc47d1732a673 (diff)
+command buffer
Diffstat (limited to 'Assets/Scripts/Scene/MainCamera.cs')
-rw-r--r--Assets/Scripts/Scene/MainCamera.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/Assets/Scripts/Scene/MainCamera.cs b/Assets/Scripts/Scene/MainCamera.cs
deleted file mode 100644
index 45399ceb..00000000
--- a/Assets/Scripts/Scene/MainCamera.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class MainCamera : SingletonMB<MainCamera>
-{
- public new Camera camera { get; private set; }
-
- public Vector3 offset = Vector3.zero;
-
- protected override void Awake()
- {
- base.Awake();
- camera = gameObject.GetComponent<Camera>();
- }
-
- void Update()
- {
- if (TestErika.Instance.erika.unitController == null)
- {
- return;
- }
- Vector3 pos = transform.position;
- pos.x = TestErika.Instance.erika.unitController.transform.position.x;
- pos.y = TestErika.Instance.erika.unitController.transform.position.y;
- transform.position = pos + offset;
- }
-
-} \ No newline at end of file