Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
        private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Destroy(this.gameObject);
            }

            m_SoundManager = this.GetComponent <SoundManager>();
            SoundDataSetting soundData = ResourceManager.m_Instance.LoadData(typeof(SoundDataSetting), "Sounds/Mission", "PanelMission_SoundDataSetting") as SoundDataSetting;

            m_SoundManager.SetAudioClips(soundData.SoundDatas);

            m_MissionElementMap = new Dictionary <eMissionType, List <UIMissionInfo> >();
        }