diff options
author | chai <chaifix@163.com> | 2021-09-17 20:09:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-17 20:09:19 +0800 |
commit | 234c25bc8761a4d41bc5b4aa362449cf3e806e13 (patch) | |
tree | 69cc0b7002ac8018af1806de366526dfc089d49e /Assets/Scripts/Test 1/TestCamera.cs | |
parent | ea4624fbef6e9d8f58da12be363807eb19a37b53 (diff) |
*unit image effect
Diffstat (limited to 'Assets/Scripts/Test 1/TestCamera.cs')
-rw-r--r-- | Assets/Scripts/Test 1/TestCamera.cs | 28 |
1 files changed, 0 insertions, 28 deletions
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<Camera>());
- }
-
- // 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<UnitController>().center.x;
- //pos.y = TestErika.Instance.erika.unitController.GetComponent<UnitController>().center.y;
- pos.x = TestErika.Instance.erika.unitController.transform.position.x;
- pos.y = TestErika.Instance.erika.unitController.transform.position.y;
- transform.position = pos + offset;
- }
-}
|