public void SetGlobalMobileMouseEvent(JCS_MobileMouseEvent mme) { if (mMobileMouseEvent != null) { JCS_Debug.LogWarning("You are trying to override an existing `mobile mouse event`"); return; } this.mMobileMouseEvent = mme; }
/// <summary> /// Add the input type base on the platform type. /// </summary> private void AddInputBaseOnPlatform() { switch (JCS_ApplicationManager.instance.PlatformType) { case JCS_PlatformType.MOBILE: { if (this.mSlideInput == null) { this.mSlideInput = this.gameObject.AddComponent <JCS_SlideInput>(); } if (this.mMobileMouseEvent == null) { this.mMobileMouseEvent = this.gameObject.AddComponent <JCS_MobileMouseEvent>(); } } break; } }
public void SetJCSMobileMouseEvent(JCS_MobileMouseEvent me) { this.mMobileMouseEvent = me; }