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); } }
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); } }
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>(); } }
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); } }
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(); }
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; }
public override void Initialize(LobbyCanvasUI _LobbyCanvasUI) { base.Initialize(_LobbyCanvasUI); m_LobbySettingUI.Initialize(_LobbyCanvasUI); }
public override void Initialize(LobbyCanvasUI _LobbyCanvasUI) { base.Initialize(_LobbyCanvasUI); m_QuestRoomListUI.Initialize(_LobbyCanvasUI); }
public void Initialize(LobbyCanvasUI _LobbyCanvasUI) { m_LobbyCanvasUI = _LobbyCanvasUI; }