diff options
author | chai <chaifix@163.com> | 2021-09-11 20:24:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-11 20:24:19 +0800 |
commit | 9c6f901cfe2826ad6185bb73bf4712bdcf861732 (patch) | |
tree | a38d721575652b7c963475af8a5a6dd6a28ff171 /Assets/Scripts | |
parent | a9d460f503f4d09a4c0e00164c6ca1ba3f8725dd (diff) |
*misc
Diffstat (limited to 'Assets/Scripts')
-rw-r--r-- | Assets/Scripts/Test 1/TestCamera.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Assets/Scripts/Test 1/TestCamera.cs b/Assets/Scripts/Test 1/TestCamera.cs index 6a6795bd..340a2eb5 100644 --- a/Assets/Scripts/Test 1/TestCamera.cs +++ b/Assets/Scripts/Test 1/TestCamera.cs @@ -4,6 +4,7 @@ using UnityEngine; public class TestCamera : MonoBehaviour
{
+ public Vector3 offset = Vector3.zero;
// Start is called before the first frame update
void Start()
@@ -21,6 +22,6 @@ public class TestCamera : MonoBehaviour Vector3 pos = transform.position;
pos.x = TestErika.Instance.erika.unitController.GetComponent<UnitController>().center.x;
pos.y = TestErika.Instance.erika.unitController.GetComponent<UnitController>().center.y;
- transform.position = pos;
+ transform.position = pos + offset;
}
}
|