public void FireButtonDown(PointerEventData eventData) { if (this.onButtonDown != null) { if (!NativeManager.GetInstance().shouldForbideTouch()) { this.onButtonDown(this.gameObject, eventData.pointerId); } } }
static int GetInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); NativeManager o = NativeManager.GetInstance(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void OnPointerClick(PointerEventData eventData) { if (NativeManager.GetInstance().shouldForbideTouch()) { return; } this.lastPointerEventData = eventData; if (this.isClickSoundEnable) { if (this.mClickSoundOverride == string.Empty) { this.mClickSoundOverride = "common_button"; } AudioManager.PlaySoundFromAssetBundle(this.mClickSoundOverride, this.mIsSoundDontDestroyOnLoad, AudioManager.SoundMute); } UIManager.Instance.FireLostFocusEvent(eventData.pointerEnter); FireButtonClick(); }
// Use this for initialization void Start() { NativeManager.GetInstance().BindSpeechResult(SpeechResult); NativeManager.GetInstance().BindSpeechVolumeChange(VolumeChanged); }