private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Destroy(this.gameObject);
            }

            m_PlayerMap = new Dictionary <Player, List <UIStratagemActElement> >();
        }
Example #2
0
 public void Init()
 {
     m_PanelPlayerInfo   = Instantiate(m_PanelPlayerInfo, this.transform);
     m_PanelStratagemAct = Instantiate(m_PanelStratagemAct, this.transform);
     m_PanelRadar        = Instantiate(m_PanelRadar, this.transform);
     m_PanelMap          = Instantiate(m_PanelMap, this.transform);
     m_PanelRadar.Init();
     m_PanelMap.Init();
     m_PanelMissionInfo     = Instantiate(m_PanelMissionInfo, this.transform);
     m_PanelMissionBriefing = Instantiate(m_PanelMissionBriefing, this.transform);
     m_PanelMissionBriefing.Init(MapInfo.Instance);
     m_PanelMissionCompleted = Instantiate(m_PanelMissionCompleted, this.transform);
     m_PanelMissionFaild     = Instantiate(m_PanelMissionFaild, this.transform);
 }