summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Managers/UnitManager.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-16 09:52:33 +0800
committerchai <chaifix@163.com>2021-09-16 09:52:33 +0800
commit8b65edb43be0945203633b33d7a62c81ab3f05ce (patch)
treebb5186baf27e58ca96389843907f9906380fd8e0 /Assets/Scripts/Managers/UnitManager.cs
parent28b89971f0d3fd246443450c87f33996716facb3 (diff)
+unit effect
Diffstat (limited to 'Assets/Scripts/Managers/UnitManager.cs')
-rw-r--r--Assets/Scripts/Managers/UnitManager.cs20
1 files changed, 9 insertions, 11 deletions
diff --git a/Assets/Scripts/Managers/UnitManager.cs b/Assets/Scripts/Managers/UnitManager.cs
index f268d033..62afc08b 100644
--- a/Assets/Scripts/Managers/UnitManager.cs
+++ b/Assets/Scripts/Managers/UnitManager.cs
@@ -2,17 +2,15 @@
using System.Collections.Generic;
using UnityEngine;
-public class UnitManager : MonoBehaviour
+public class UnitManager : Singleton<UnitManager>
{
- // Start is called before the first frame update
- void Start()
- {
-
- }
+ public PCController pc { get; private set; }
- // Update is called once per frame
- void Update()
- {
-
- }
+ public List<MonsterController> monsters { get; private set; }
+
+
+ public void SetPlayerCharacter(PCController pc)
+ {
+ this.pc = pc;
+ }
}