summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test 1/TestErika.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Test 1/TestErika.cs')
-rw-r--r--Assets/Scripts/Test 1/TestErika.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Assets/Scripts/Test 1/TestErika.cs b/Assets/Scripts/Test 1/TestErika.cs
index 949cf76f..f82e30f7 100644
--- a/Assets/Scripts/Test 1/TestErika.cs
+++ b/Assets/Scripts/Test 1/TestErika.cs
@@ -21,15 +21,19 @@ public class UnitSetUp
[HideInInspector]
public GameObject unitController;
+
+ [HideInInspector]
+ public UnitController owner;
}
-public class TestErika : MonoBehaviour
+public class TestErika : SingletonMB<TestErika>
{
public UnitSetUp erika;
public UnitSetUp monster;
- private void Awake()
+ protected override void Awake()
{
+ base.Awake();
SetupErika();
SetupMonster();
}
@@ -104,6 +108,8 @@ public class TestErika : MonoBehaviour
monster.unitController.transform.position = new Vector3(2, 0, 0);
monster.unitController.transform.rotation *= Quaternion.Euler(0, 180, 0);
+
+ monster.owner = unitCtr;
}
}