public MessageLink GetMessage() { MessageLink m = _message; _message = null; return(m); }
public void Update() { MessageLink m = _logics.GetMessage(); if (m != null) { Debug.Log("Create link"); m.Source.CreateLink(m.Destination); } }
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(); } }