Ejemplo n.º 1
0
 void Awake()
 {
     rawImages = GetComponentsInChildren <RawImage>();
     for (int i = 0; i < rawImages.Length; i++)
     {
         rawImages[i].transform.position = Vector3.forward * FlipbookManager.GetSliceZPos(i);
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     cursorMaterial = GetComponent <RawImage>().material;
     hypercubeScale = hypercubeCamera.mainCam.transform.localScale;
     zPos           = FlipbookManager.GetSliceZPos(layerIndex) + zOffset;
     ImportColorsFromButtonManager();
     GenerateBrushes();
     SetCursorColor(20); //set the color to white
     StartCoroutine(Drawing());
 }