diff options
author | chai <chaifix@163.com> | 2021-09-16 09:52:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-16 09:52:33 +0800 |
commit | 8b65edb43be0945203633b33d7a62c81ab3f05ce (patch) | |
tree | bb5186baf27e58ca96389843907f9906380fd8e0 /Assets/Scripts/Managers/UnitManager.cs | |
parent | 28b89971f0d3fd246443450c87f33996716facb3 (diff) |
+unit effect
Diffstat (limited to 'Assets/Scripts/Managers/UnitManager.cs')
-rw-r--r-- | Assets/Scripts/Managers/UnitManager.cs | 20 |
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;
+ }
}
|