diff options
author | chai <chaifix@163.com> | 2022-04-23 15:59:11 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-23 15:59:11 +0800 |
commit | 33858a90ec0bc47f0c3d4fc843f9f45a749175e3 (patch) | |
tree | 56d59f053a4b7612b4de7f5d96a47830b5c7a14e /SurvivalTest/Assets/Scripts/GameApp.cs | |
parent | bdb737230b30e8fb9be63d95b792e8c8ba531ea0 (diff) |
*equip
Diffstat (limited to 'SurvivalTest/Assets/Scripts/GameApp.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/GameApp.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/SurvivalTest/Assets/Scripts/GameApp.cs b/SurvivalTest/Assets/Scripts/GameApp.cs index cfc93d9..2bbb5f4 100644 --- a/SurvivalTest/Assets/Scripts/GameApp.cs +++ b/SurvivalTest/Assets/Scripts/GameApp.cs @@ -6,12 +6,21 @@ using UnityEngine; public class GameApp : MonoBehaviour { - void Start() + public static GameApp Instance + { + get; + private set; + } + + private void Awake() + { + Instance = this; + } + + void Start() { PlayerManager.Instance.Init(); BattleManager.Instance.Init(); - - } void Update() |