예제 #1
0
    void OnEnable()
    {
        set      = (PTPSet)target;
        LastTool = Tools.current;

        currentSearch = SearchReason.None;

        start = null;
        end   = null;
    }
예제 #2
0
    public void Deserialize(PTPSet owner)
    {
        owningSet = owner;

        //Debug.Log("Deserializing");

        var c = keys.Length;

        connectedPointWeight = new Dictionary <PTPPoint, float>(c);
        for (int i = 0; i < c; i++)
        {
            connectedPointWeight[owningSet.GetPointsInSet()[keys[i]]] = values[i];
        }
        keys   = null;
        values = null;
    }
예제 #3
0
 public PTPPoint(Vector3 location, PTPSet owner)
 {
     connectedPointWeight = new Dictionary <PTPPoint, float>();
     this.location        = location;
     owningSet            = owner;
 }