Пример #1
0
    private GHUD GenHUD(SceneInfo sceneInfo)
    {
        HUDMgr.HUDType hudType       = HUDMgr.HUDType.None;
        bool           isClearOldHUD = true;

        switch (sceneInfo.m_Type)
        {
        case SceneType.Tank:
            hudType = HUDMgr.HUDType.HUD_Tank;
            break;

        case SceneType.StoryGame:
            hudType = HUDMgr.HUDType.HUD_StoryGame;
            break;

        case SceneType.StoryBossGame:
            hudType = HUDMgr.HUDType.HUD_StoryBoss;
            break;
            //case SceneType.Multiplayer:
            //    hudType = HUDMgr.HUDType.HUD_Multiplayer;
            //    break;
        }

        if (hudType != HUDMgr.HUDType.None)
        {
            return(Ref_HUDMgr.GenHUD(hudType, isClearOldHUD));
        }
        return(null);
    }
Пример #2
0
    // === HUD INFO ===
    public HUDInfo GetHUDInfo(HUDMgr.HUDType HUDtype)
    {
        if (!m_dHUDInfo.ContainsKey(HUDtype))
        {
            return(null);
        }

        return(new HUDInfo(m_dHUDInfo[HUDtype]));
    }
Пример #3
0
 public HUDInfo(HUDInfo a_Copy)
 {
     m_HUDType     = a_Copy.m_HUDType;
     m_PrefPath    = a_Copy.m_PrefPath;
     m_lElementLoc = new List <ObjLocation>(a_Copy.m_lElementLoc);
 }