From 02b44c07adfcf921da594120b4cd8fc18b982725 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 20 Sep 2021 00:42:33 +0800 Subject: +command buffer --- Assets/Scripts/Scene/MainCamera.cs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 Assets/Scripts/Scene/MainCamera.cs (limited to 'Assets/Scripts/Scene/MainCamera.cs') 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 -{ - public new Camera camera { get; private set; } - - public Vector3 offset = Vector3.zero; - - protected override void Awake() - { - base.Awake(); - camera = gameObject.GetComponent(); - } - - 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 -- cgit v1.1-26-g67d0