public override bool ProcessEvents(Event iEvent) { ProcessDefault(iEvent); InPoint.ProcessEvents(iEvent); for (int i = 0; i < OutPoints.Count; i++) { OutPoints[i].ProcessEvents(iEvent); } if (isAddClicked) { switch (NodeActionType) { case ActionType.DIALOG: OutPoints.Add(new NodeConnectionPoint(this, NodeConnectionPointType.Out, Editor.OnClickOutPoint)); Triggers.Add(""); break; case ActionType.PATROL: TargetPosition.Add(Vector3.zero); break; default: break; } } else if (isRemoveClicked && OutPoints.Count > 1) { switch (NodeActionType) { case ActionType.DIALOG: OutPoints.RemoveAt(OutPoints.Count - 1); Triggers.RemoveAt(Triggers.Count - 1); break; case ActionType.PATROL: TargetPosition.RemoveAt(Triggers.Count - 1); break; default: break; } } if (isLoadPosition && NodeActionType == ActionType.PATROL) { } return(false); }
public override bool ProcessEvents(Event e) { ProcessDefault(e); OutputPoint.ProcessEvents(e); return(false); }