예제 #1
0
        public MessageLink GetMessage()
        {
            MessageLink m = _message;

            _message = null;
            return(m);
        }
예제 #2
0
        public void Update()
        {
            MessageLink m = _logics.GetMessage();

            if (m != null)
            {
                Debug.Log("Create link");
                m.Source.CreateLink(m.Destination);
            }
        }
예제 #3
0
 public void SetMouseState(MouseState state)
 {
     if (MouseState.Down == state)
     {
         Clear();
         if (_focus != null)
         {
             _source = _focus;
             _source._wrapper.SetPressed(true);
         }
     }
     if (MouseState.Up == state)
     {
         if (_source != null && _focus != null && _focus != _source)
         {
             _destination = _focus;
             _message     = new MessageLink(this);
         }
         Clear();
     }
 }