Exemple #1
0
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        if (PlayerPrefs.GetInt(m_BGMMuteKey, 0) == 0)
        {
            m_BGMSpeakerImage.sprite = m_SpeakerImage;
            float volume = PlayerPrefs.GetFloat(m_BGMVolumeKey, 1.0f);
            m_BGMSlider.value = volume;
            SetBGMVolume(volume);
        }
        else
        {
            m_BGMSpeakerImage.sprite = m_MuteSpeakerImage;
            SoundManager.Instance.SetBGMVolume(0.0f);
        }

        if (PlayerPrefs.GetInt(m_EffectMuteKey, 0) == 0)
        {
            m_EffectSpeakerImage.sprite = m_SpeakerImage;
            float volume = PlayerPrefs.GetFloat(m_EffectVolumeKey, 1.0f);
            m_EffectSlider.value = volume;
            SetEffectVolume(volume);
        }
        else
        {
            m_EffectSpeakerImage.sprite = m_MuteSpeakerImage;
            SoundManager.Instance.SetEffectVolume(0.0f);
        }
    }
Exemple #2
0
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        m_WaitingRoomConnectUI.gameObject.SetActive(false);
        m_WaitingRoomInRoomUI.gameObject.SetActive(false);
    }
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        ViewerList.Add(this);

        m_Grid = transform.Find("MaskField/Grid");
    }
 public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
 {
     base.Initialize(_LobbyCanvasUI);
     for (int i = 0; i < m_Slot.Length; ++i)
     {
         m_Slot[i].Initialize(_LobbyCanvasUI);
         m_Slot[i].gameObject.SetActive(false);
     }
 }
Exemple #5
0
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        m_QuestListUI = transform.Find("QuestListUI").GetComponent <QuestListUI>();
        m_QuestListUI.Initialize(_LobbyCanvasUI);

        m_QuestMultiTypeSelectUI.Initialize(_LobbyCanvasUI);
    }
    public void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        m_LobbyCanvasUI = _LobbyCanvasUI;
        m_ItemImage     = transform.Find("ItemImage").GetComponent <UnityEngine.UI.Image>();

        m_Stars = new UnityEngine.UI.Image[Common.MAXREINFORECEVALUE];
        for (int i = 0; i < Common.MAXREINFORECEVALUE; ++i)
        {
            m_Stars[i] = transform.Find("Star " + (i + 1).ToString()).GetComponent <UnityEngine.UI.Image>();
        }
    }
Exemple #7
0
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        m_CharacterPreviewUI.Initialize();

        m_CharacterSlotUI = transform.Find("CharacterSlot").GetComponent <CharacterSlotUI>();
        m_CharacterSlotUI.Initialize(_LobbyCanvasUI);
        for (int i = 0; i < 3; ++i)
        {
            m_EquipmentSlotUI[i] = transform.Find("EquipSlot" + (i + 1).ToString()).GetComponent <EquipmentSlotUI>();
            m_EquipmentSlotUI[i].Initialize(_LobbyCanvasUI);
        }
    }
Exemple #8
0
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        DefaultInstance = this;

        m_Stars = new UnityEngine.UI.Image[Common.MAXREINFORECEVALUE];
        for (int i = 0; i < Common.MAXREINFORECEVALUE; ++i)
        {
            m_Stars[i] = transform.Find("Background/Star " + (i + 1).ToString()).GetComponent <UnityEngine.UI.Image>();
        }

        m_InventoryViewer.Initialize(_LobbyCanvasUI);
    }
    public void Initialize(Item _Item, E_USETYPE _UseType, LobbyCanvasUI _LobbyCanvasUI)
    {
        m_UseType = _UseType;
        gameObject.SetActive(true);
        m_Item          = _Item;
        m_LobbyCanvasUI = _LobbyCanvasUI;

        if (!m_ItemImage)
        {
            m_ItemImage = transform.Find("ItemImage").GetComponent <UnityEngine.UI.Image>();
        }
        if (!m_OutlineBoxImage)
        {
            m_OutlineBoxImage = transform.Find("OutLineImage").GetComponent <UnityEngine.UI.Image>();
        }

        m_Stars = new UnityEngine.UI.Image[Common.MAXREINFORECEVALUE];
        for (int i = 0; i < Common.MAXREINFORECEVALUE; ++i)
        {
            m_Stars[i] = transform.Find("Star " + (i + 1).ToString()).GetComponent <UnityEngine.UI.Image>();
        }

        Refresh();
    }
Exemple #10
0
    public void Initialize(QuestData _Data, LobbyCanvasUI _LobbyCanvasUI)
    {
        if (!m_Icon)
        {
            m_Icon = transform.Find("Icon").GetComponent <UnityEngine.UI.Image>();
        }
        if (!m_NameText)
        {
            m_NameText = transform.Find("Name_Text").GetComponent <TMPro.TMP_Text>();
        }
        if (!m_LevelText)
        {
            m_LevelText = transform.Find("Level_Text").GetComponent <TMPro.TMP_Text>();
        }

        gameObject.SetActive(true);

        m_QuestData      = _Data;
        m_Icon.sprite    = _Data.m_Icon;
        m_NameText.text  = _Data.m_Name;
        m_LevelText.text = _Data.m_Level.ToString();

        m_LobbyCanvasUI = _LobbyCanvasUI;
    }
Exemple #11
0
    public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
    {
        base.Initialize(_LobbyCanvasUI);

        m_LobbySettingUI.Initialize(_LobbyCanvasUI);
    }
Exemple #12
0
 public override void Initialize(LobbyCanvasUI _LobbyCanvasUI)
 {
     base.Initialize(_LobbyCanvasUI);
     m_QuestRoomListUI.Initialize(_LobbyCanvasUI);
 }
Exemple #13
0
 public void Initialize(LobbyCanvasUI _LobbyCanvasUI)
 {
     m_LobbyCanvasUI = _LobbyCanvasUI;
 }