diff options
Diffstat (limited to 'Assets/Scripts/Test 1/TestCamera.cs')
-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;
}
}
|