public void PlayChildSound(string in_soundKey)
        {
            if (!m_myReferencedSounds.ContainsKey(in_soundKey))
            {
                m_myReferencedSounds[in_soundKey] = new List <uint>();
            }

            m_myReferencedSounds[in_soundKey].Add(GSoundMgr.PlaySound(in_soundKey, transform));
        }
        // dummy second param
        public uint PlaySound(string in_soundKey, bool bReturn)
        {
            if (!m_myReferencedSounds.ContainsKey(in_soundKey))
            {
                m_myReferencedSounds[in_soundKey] = new List <uint>();
            }

            uint toReturn = GSoundMgr.PlaySound(in_soundKey);

            m_myReferencedSounds[in_soundKey].Add(toReturn);
            return(toReturn);
        }
示例#3
0
        public void Update()
        {
            if (Input.GetKeyUp(KeyCode.Escape))
            {
                if (GStateManager.Instance.IsLoadingState ||
                    GStateManager.Instance.IsLoadingSubState ||
                    GStateManager.Instance.CurrentStateId == BrainCloudUNETExample.SplashState.STATE_NAME)
                {
                    return;
                }

                if (GStateManager.Instance.CurrentSubStateId != GStateManager.UNDEFINED_STATE)
                {
                    GSoundMgr.PlaySound("commonClick");
                    GStateManager.Instance.PopCurrentSubState();
                }
                else
                {
                    onApplicationQuit();
                    //HudHelper.DisplayMessageDialogTwoButton("GLN SLOTS", "DO YOU WISH TO CLOSE GLN SLOTS?", "NO", null, "YES", onApplicationQuit, GenericMessageSubState.eButtonColors.GREEN, GenericMessageSubState.eButtonColors.RED);
                }
            }
        }