Beispiel #1
0
 /// <summary>
 /// 初始化
 /// </summary>
 public static void Init()
 {
     playerPool = new PlayerPool();
     playerPool.Init();
     enemyPool = new EnemyPool();
     enemyPool.Init();
     genericPropPool = new GenericPropPool();
     genericPropPool.Init();
 }
Beispiel #2
0
    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();
    }