コード例 #1
0
 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;
 }
コード例 #2
0
        /// <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;
            }
        }
コード例 #3
0
 public void SetJCSMobileMouseEvent(JCS_MobileMouseEvent me)
 {
     this.mMobileMouseEvent = me;
 }