public void OnEnable()
        {
            multipleSelection = !(targets == null || targets.Length == 1);

            wp            = (Waypoint)target;
            parentNetwork = wp.parentNetwork;

            wps = new Waypoint[targets.Length];
            for (var i = 0; i < targets.Length; i++)
            {
                wps[i] = (Waypoint)targets[i];
            }

            if (multipleSelection && targets.Length == 2)
            {
                currentConn = GetConnectionBetweenSelectedWaypoints();
            }
        }
        public void OnEnable()
        {
            multipleSelection = !(targets == null || targets.Length == 1);
            
            wp = (Waypoint)target;
            parentNetwork = wp.parentNetwork;

            wps = new Waypoint[targets.Length];
            for (var i = 0; i < targets.Length; i++)
            {
                wps[i] = (Waypoint)targets[i];
            }

            if (multipleSelection && targets.Length == 2)
            {
                currentConn = GetConnectionBetweenSelectedWaypoints();
            }
        }
Пример #3
0
 public void OnEnable()
 {
     network = (WaypointNetworkV2)target;
 }
 public void OnEnable()
 {
     network = (WaypointNetworkV2)target;
 }