public void setData(int num, AnimVR.KEYFRAME_TYPE kftype, GraphCanvas clickReciever, Color defaultColor) { type = kftype; keyframeIndex = num; ClickReciever = clickReciever; m_defaultColor = defaultColor; }
private void createKeyPoint(AnimVR.KEYFRAME_TYPE type, Vector2 position, Color pointColor, int index) { GameObject keyPoint = Instantiate(keyPointPrefab, this.transform); keyPoint.GetComponent <Transform>().localPosition = new Vector3(position.x, position.y, 0); keyPoint.GetComponent <Image>().color = pointColor; keyPoint.GetComponent <KeyPointData>().setData(index, type, this, pointColor); m_lines.keyPoints[(int)type].Add(keyPoint); }
public void toggleDrawing(AnimVR.KEYFRAME_TYPE type, bool value) { toggleDraw[(int)type] = value; }
public Color getColor(AnimVR.KEYFRAME_TYPE type) { return(lineColors[(int)type]); }
public void ModifyData(AnimVR.KEYFRAME_TYPE type, int index, Vector3 newValue) { lineTransforms[(int)type][index] = newValue; }
public void AddData(AnimVR.KEYFRAME_TYPE type, Color color, params Vector3[] newLines) { lineTransforms[(int)type].AddRange(newLines); lineColors[(int)type] = color; }
public void addPoints(AnimVR.KEYFRAME_TYPE type, Color color, params Vector3[] newLines) { m_lines.AddData(type, color, newLines); }