Esempio n. 1
0
        /// <summary>
        /// Mouse down event on node ports
        /// </summary>
        /// <param name="canvas">Working canvas</param>
        /// <param name="e">user event</param>
        public void MouseDownPorts(MoonEditorCanvas canvas, Event e)
        {
            InputPort.MouseDown(e, canvas);

            if (OutputPorts != null && OutputPorts.Length > 0)
            {
                for (int i = 0; i < OutputPorts.Length; i++)
                {
                    NodePort current = OutputPorts[i];
                    if (current != null)
                    {
                        current.MouseDown(e, canvas);
                    }
                }
            }
        }