Ejemplo n.º 1
0
 static void DrawConnections(EngineEventTriggerManager _manager, GizmoType gizmoType)
 {
     for (int trigInd = 0; trigInd < _manager.Triggers.Length; trigInd++)
     {
         var receivers = _manager.Triggers[trigInd].Receivers;
         for (int recInd = 0; recInd < receivers.Length; recInd++)
         {
             var receiver = receivers[recInd].Manager;
             if (receiver)
             {
                 var pos  = _manager.transform.position;
                 var dest = receiver.transform.position;
                 EditorExtensions.DrawArrowedLine(pos, dest, 2, 0.05f, Color.blue, Color.green);
             }
         }
     }
 }