/// <summary> /// 初始化 /// </summary> public static void Init() { playerPool = new PlayerPool(); playerPool.Init(); enemyPool = new EnemyPool(); enemyPool.Init(); genericPropPool = new GenericPropPool(); genericPropPool.Init(); }
private void Awake() { Instance = this; PlayerPool = GetComponent <PlayerPool>(); MatchManager = GetComponent <MatchManager>(); UIManager = GetComponent <UIManager>(); CameraSystem = GetComponent <CameraSystem>(); LevelManager = GetComponent <LevelManager>(); PlayerPool.Init(); MatchManager.Init(); //UIManager.Init(); CameraSystem.Init(); LevelManager.Init(); }