Exemplo n.º 1
0
 private static void OnInit(GameManager gameManager)
 {
     EnemyInfo.OnInit();
     CustomInfo.OnInit();
     HitboxInfo.OnInit();
     RngInfo.OnInit();
 }
Exemplo n.º 2
0
        private static void OnPreRender(GameManager gameManager, StringBuilder infoBuilder)
        {
            // 放第一位,先更新 settings
            ConfigManager.OnPreRender();

            // 放第二位,先处理镜头之后 camera.WorldToScreenPoint 才能获得正确数据
            CameraManager.OnPreRender(gameManager);

            HeroInfo.OnPreRender(gameManager, infoBuilder);
            CustomInfo.OnPreRender(gameManager, infoBuilder);
            TimeInfo.OnPreRender(gameManager, infoBuilder);
            EnemyInfo.OnPreRender(gameManager, infoBuilder);
            HitboxInfo.OnPreRender(gameManager, infoBuilder);
            RngInfo.OnPreRender(infoBuilder);
        }