Exemple #1
0
    private void OnDrawGizmos()
    {
        if (!circuit)
        {
            return;
        }

        Handles.color = wireColor;
        eventCount    = circuit.GetEvents().GetPersistentEventCount();
        for (int i = 0; i < eventCount; i++)
        {
            Component component = circuit.GetEvents().GetPersistentTarget(i) as Component;
            if (!component)
            {
                GameObject go = circuit.GetEvents().GetPersistentTarget(i) as GameObject;
                DrawGOLine(go);
                return;
            }
            DrawCompLine(component);
        }
    }