From 234c25bc8761a4d41bc5b4aa362449cf3e806e13 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 17 Sep 2021 20:09:19 +0800 Subject: *unit image effect --- Assets/Scripts/Test 1/TestCamera.cs | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Assets/Scripts/Test 1/TestCamera.cs (limited to 'Assets/Scripts/Test 1/TestCamera.cs') diff --git a/Assets/Scripts/Test 1/TestCamera.cs b/Assets/Scripts/Test 1/TestCamera.cs deleted file mode 100644 index 8e4ba89e..00000000 --- a/Assets/Scripts/Test 1/TestCamera.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class TestCamera : MonoBehaviour -{ - public Vector3 offset = Vector3.zero; - - void Awake() - { - SceneManager.Instance.SetMainCamera(this.gameObject.GetComponent()); - } - - // Update is called once per frame - void Update() - { - if(TestErika.Instance.erika.unitController == null) - { - return; - } - Vector3 pos = transform.position; - //pos.x = TestErika.Instance.erika.unitController.GetComponent().center.x; - //pos.y = TestErika.Instance.erika.unitController.GetComponent().center.y; - pos.x = TestErika.Instance.erika.unitController.transform.position.x; - pos.y = TestErika.Instance.erika.unitController.transform.position.y; - transform.position = pos + offset; - } -} -- cgit v1.1-26-g67d0