Ejemplo n.º 1
0
        /// BGMの再生
        public void PlayBgm(BgmId id, bool loop)
        {
            StopBgm();

            bgmPlayer      = bgmList[(int)id].CreatePlayer();
            bgmPlayer.Loop = loop;
            bgmPlayer.Play();
            bgmPlayer.Volume = 0.1f;
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestGroupId != 0L)
            {
                hash ^= QuestGroupId.GetHashCode();
            }
            if (U2.Length != 0)
            {
                hash ^= U2.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U4 != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (U7.Length != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (BgmId.Length != 0)
            {
                hash ^= BgmId.GetHashCode();
            }
            if (U10 != 0)
            {
                hash ^= U10.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public void ChangeTo(RectTransform newPanel, BgmId bgmId = BgmId.Same)
        {
            if (currentPanel != null)
            {
                currentPanel.gameObject.SetActive(false);
            }

            if (newPanel != null)
            {
                newPanel.gameObject.SetActive(true);
            }

            currentPanel = newPanel;

            if (bgmId != BgmId.Same)
            {
                AudioManager.Instance.PlayBgm(bgmId);
            }
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestGroupId != 0L)
            {
                hash ^= QuestGroupId.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (U4.Length != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (U5.Length != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (BgmId.Length != 0)
            {
                hash ^= BgmId.GetHashCode();
            }
            if (ItemId != 0L)
            {
                hash ^= ItemId.GetHashCode();
            }
            hash ^= missionIds_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 5
0
        /// BGMの再生
        public void PlayBgm( BgmId id, bool loop )
        {
            StopBgm();

            bgmPlayer = bgmList[(int)id].CreatePlayer();
            bgmPlayer.Loop = loop;
            bgmPlayer.Play();
            bgmPlayer.Volume = 0.1f;
        }