Пример #1
0
 private void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Пример #2
0
 public void NavigationBackButton()
 {
     UISoundManager.UISound(EUISound.Button);
     if (null != m_pPages[(int)m_eCurrent])
     {
         m_pPages[(int)m_eCurrent].OnButtonBack();
     }
 }
Пример #3
0
    public virtual void Show(CUIPageConfig config)
    {
        gameObject.SetActive(true);
        m_fAnimTime = 0.7f;
        m_bInOut    = true;

        UISoundManager.UISound(EUISound.Slide);
    }
Пример #4
0
 public void HideDialog(EDialog eDialog)
 {
     m_pDialogBG.SetActive(false);
     UISoundManager.UISound(EUISound.Popup);
     m_pDialogAnims[(int)eDialog]["PlaneOut"].normalizedTime = 0.0f;
     m_pDialogAnims[(int)eDialog]["PlaneOut"].speed          = 1.0f;
     m_pDialogAnims[(int)eDialog]["PlaneOut"].wrapMode       = WrapMode.Clamp;
     m_pDialogAnims[(int)eDialog].Play("PlaneOut");
 }
Пример #5
0
 public void ShowDialog(EDialog eDialog)
 {
     m_pDialogBG.SetActive(true);
     UISoundManager.UISound(EUISound.Popup);
     m_pDialogPlanes[(int)eDialog].gameObject.SetActive(true);
     m_pDialogAnims[(int)eDialog]["PlaneIn"].normalizedTime = 0.0f;
     m_pDialogAnims[(int)eDialog]["PlaneIn"].speed          = 1.0f;
     m_pDialogAnims[(int)eDialog]["PlaneIn"].wrapMode       = WrapMode.Clamp;
     m_pDialogAnims[(int)eDialog].Play("PlaneIn");
 }
Пример #6
0
    public void OnButtonStart()
    {
        if (m_fAnimTime > 0.0f)
        {
            return;
        }

        UISoundManager.UISound(EUISound.Button);
        GoPage(EPage.Menu, null);
    }
Пример #7
0
 private void Awake()
 {
     if (Instance)
     {
         Debug.LogWarning("UISoundManager already in scene. Deleting myself!");
         Destroy(this);
         return;
     }
     Instance = this;
 }
Пример #8
0
 public new void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     if (Instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         base.Awake();
         this.uiSounds = this.GetComponentInChildren <UISoundManager>();
         DontDestroyOnLoad(this.gameObject);
     }
 }
Пример #9
0
    public void OnBtStart()
    {
        if (m_fAnimTime > 0.0f)
        {
            return;
        }
        UISoundManager.UISound(EUISound.Button);
        //m_pParameter = GetSimulateParameter();
        if (!m_bRunning)
        {
            SetupParametersToShader();
            DisableAllItems();
        }
        else
        {
            SetUpInteractableWithCfg();
        }

        m_bRunning            = !m_bRunning;
        m_txtButtonStart.text = m_bRunning ? "暂停" : "开始";
    }
Пример #10
0
 void OnDestroy()
 {
     instance = null;
 }
Пример #11
0
 void OnDestroy()
 {
     instance = null;
 }
Пример #12
0
 public void NavigationHelpButton()
 {
     UISoundManager.UISound(EUISound.Button);
 }
 // Start is called before the first frame update
 void Start()
 {
     _Instance = this;
 }
Пример #14
0
 private void Awake()
 {
     _instance = this;
 }
Пример #15
0
 private void Awake()
 {
     Instance         = this;
     _defaultMusicVol = UIMusicPlayer.volume;
 }
Пример #16
0
 void Awake()
 {
     instance   = this;
     m_SoundSet = gameObject.GetComponent <SoundSet>();
 }
Пример #17
0
 void Awake()
 {
     instance = this;
     m_SoundSet = gameObject.GetComponent<SoundSet>();
 }