void OnEnable() { set = (PTPSet)target; LastTool = Tools.current; currentSearch = SearchReason.None; start = null; end = null; }
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; }
public PTPPoint(Vector3 location, PTPSet owner) { connectedPointWeight = new Dictionary <PTPPoint, float>(); this.location = location; owningSet = owner; }