Exemplo n.º 1
0
    private void Initialize()
    {
        GazePointer = GazeInputModule.gazePointer;
        GazeInputModule.gazePointer = this;

        TargetMesh         = Parent.GetComponent <MeshFilter> ().mesh;
        RingMesh.vertices  = TargetMesh.vertices;
        RingMesh.triangles = TargetMesh.triangles;
        RingMesh.RecalculateBounds();
        Color[] Colors = new Color[RingMesh.vertices.Length];
        for (int i = 0; i < Colors.Length; i++)
        {
            if (UseOriginalColor)
            {
                Colors [i] = new Color(OriginalColor.r, OriginalColor.g, OriginalColor.b, 1);
            }
            else
            {
                Colors [i] = new Color(FillColor.r, FillColor.g, FillColor.b, 1);
            }
        }
        RingMesh.colors = Colors;
        ;
        isInitialized = true;
    }
Exemplo n.º 2
0
 void OnEnable()
 {
     gazer = GazeInputModule.gazePointer;
 }