Пример #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;
 }