コード例 #1
0
 //Simple touch implementation
 //TODO - for tests only!
 void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0))
     {
         JediumTouchMessage touch = new JediumTouchMessage(Test.Instance._clientId, 0f, 0f);
         _updater.AddUpdate(touch);
     }
 }
コード例 #2
0
        public override bool ProcessUpdate(JediumBehaviourMessage message)
        {
            if (Initialized)
            {
                if (message == null)
                {
                    return(false); //no empty update part
                }
                if (!(message is JediumTouchMessage))
                {
                    return(false);
                }

                JediumTouchMessage tmsg = (JediumTouchMessage)message;

                _log.Info("________TOUCHED:" + this.name);
                return(true);
            }

            return(false);
        }