summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test 1
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Test 1')
-rw-r--r--Assets/Scripts/Test 1/TestCamera.cs28
-rw-r--r--Assets/Scripts/Test 1/TestCamera.cs.meta11
2 files changed, 0 insertions, 39 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;
- }
-}
diff --git a/Assets/Scripts/Test 1/TestCamera.cs.meta b/Assets/Scripts/Test 1/TestCamera.cs.meta
deleted file mode 100644
index 82135dff..00000000
--- a/Assets/Scripts/Test 1/TestCamera.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 43084247c2f8b3743845be21c5d86ab5
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant: