Esempio n. 1
0
 /// <summary>
 /// 添加触摸处理
 /// </summary>
 /// <param name="behaviour"></param>
 public void AddBehaviour(ITouchProtocol behaviour)
 {
     if (behaviour == null)
     {
         return;
     }
     _behaviours[behaviour.Target] = behaviour;
 }
Esempio n. 2
0
        /// <summary>
        /// 移除触摸处理
        /// </summary>
        /// <param name="behaviour"></param>
        public void RemoveBehaviour(ITouchProtocol behaviour)
        {
            if (behaviour == null)
            {
                return;
            }

            _behaviours.Remove(behaviour.Target);
        }