Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / manager / GameManager.cs
@小李xl 小李xl on 26 Sep 2022 365 bytes 感应输入事件, 并触发提示窗口
  1. using Godot;
  2.  
  3. /// <summary>
  4. /// 游戏主管理器, 自动加载
  5. /// </summary>
  6. public class GameManager : Node2D
  7. {
  8. public static GameManager Instance { get; private set; }
  9.  
  10. public GameManager()
  11. {
  12. Instance = this;
  13.  
  14. //扫描并注册当前程序集下的武器
  15. WeaponManager.RegisterWeaponFromAssembly(GetType().Assembly);
  16. }
  17. }