Пример #1
0
 public void setData(int num, AnimVR.KEYFRAME_TYPE kftype, GraphCanvas clickReciever, Color defaultColor)
 {
     type           = kftype;
     keyframeIndex  = num;
     ClickReciever  = clickReciever;
     m_defaultColor = defaultColor;
 }
Пример #2
0
    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);
    }
Пример #3
0
 public void toggleDrawing(AnimVR.KEYFRAME_TYPE type, bool value)
 {
     toggleDraw[(int)type] = value;
 }
Пример #4
0
 public Color getColor(AnimVR.KEYFRAME_TYPE type)
 {
     return(lineColors[(int)type]);
 }
Пример #5
0
 public void ModifyData(AnimVR.KEYFRAME_TYPE type, int index, Vector3 newValue)
 {
     lineTransforms[(int)type][index] = newValue;
 }
Пример #6
0
 public void AddData(AnimVR.KEYFRAME_TYPE type, Color color, params Vector3[] newLines)
 {
     lineTransforms[(int)type].AddRange(newLines);
     lineColors[(int)type] = color;
 }
Пример #7
0
 public void addPoints(AnimVR.KEYFRAME_TYPE type, Color color, params Vector3[] newLines)
 {
     m_lines.AddData(type, color, newLines);
 }