From 4e46f701027da081d60aa96e0814996c7acfa70a Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 10 Sep 2021 20:18:36 +0800 Subject: *misc --- Assets/Scripts/Test 1/TestErika.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Assets/Scripts/Test 1/TestErika.cs') 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 { 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; } } -- cgit v1.1-26-g67d0