private void OnDestroy() { if (Instance == this) { Instance = null; } }
public void NavigationBackButton() { UISoundManager.UISound(EUISound.Button); if (null != m_pPages[(int)m_eCurrent]) { m_pPages[(int)m_eCurrent].OnButtonBack(); } }
public virtual void Show(CUIPageConfig config) { gameObject.SetActive(true); m_fAnimTime = 0.7f; m_bInOut = true; UISoundManager.UISound(EUISound.Slide); }
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"); }
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"); }
public void OnButtonStart() { if (m_fAnimTime > 0.0f) { return; } UISoundManager.UISound(EUISound.Button); GoPage(EPage.Menu, null); }
private void Awake() { if (Instance) { Debug.LogWarning("UISoundManager already in scene. Deleting myself!"); Destroy(this); return; } Instance = this; }
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); } }
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 ? "暂停" : "开始"; }
void OnDestroy() { instance = null; }
public void NavigationHelpButton() { UISoundManager.UISound(EUISound.Button); }
// Start is called before the first frame update void Start() { _Instance = this; }
private void Awake() { _instance = this; }
private void Awake() { Instance = this; _defaultMusicVol = UIMusicPlayer.volume; }
void Awake() { instance = this; m_SoundSet = gameObject.GetComponent <SoundSet>(); }
void Awake() { instance = this; m_SoundSet = gameObject.GetComponent<SoundSet>(); }