diff options
author | chai <chaifix@163.com> | 2021-09-12 20:15:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-12 20:15:17 +0800 |
commit | d5a6dc6437a680a259dcab633278f30c4d19c7f6 (patch) | |
tree | ec22344d069c5aaade9a507194f68744946e1db7 /Assets/Scripts/Test 1/TestCamera.cs | |
parent | d1856e25c2962c8fd8eff00e509c13fa70dffbdd (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Test 1/TestCamera.cs')
-rw-r--r-- | Assets/Scripts/Test 1/TestCamera.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Assets/Scripts/Test 1/TestCamera.cs b/Assets/Scripts/Test 1/TestCamera.cs index 340a2eb5..62b3a2d9 100644 --- a/Assets/Scripts/Test 1/TestCamera.cs +++ b/Assets/Scripts/Test 1/TestCamera.cs @@ -20,8 +20,10 @@ public class TestCamera : MonoBehaviour 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.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;
}
}
|