private void setTarget(FreePatternStore store) { serializedTarget_ = new SerializedObject(store); width_ = serializedTarget_.FindProperty("width" ); height_ = serializedTarget_.FindProperty("height"); values_ = serializedTarget_.FindProperty("values"); valuesCount_ = serializedTarget_.FindProperty("values.Array.size"); }
public string nameForStore(FreePatternStore fps) { return storesDict_.FirstOrDefault(s => s.Value == fps).Key; }