//private GameObject cameraDeviceT; // Use this for initializations void Start() { //cameraDeviceT = GameObject.Find("CameraDevice"); textureW = 573; textureH = 350; augmenter = GameObject.Find("Augmenter"); mainTexture = new Texture2D(textureW, textureH, TextureFormat.RGB24, false, true); pixels = new Color32[textureW * textureH]; createFolder = this.GetComponent <CreateFolders>(); TimerState = 0; Timer = 0; }
// Use this for initialization void Start() { screenRatio = (float)Screen.height / Screen.width; startPosition = new Vector3(0, 0, 0); endPosition = new Vector3(0, 2.1f, 0); isClosefront = true; createFolder = this.GetComponent <CreateFolders>(); addPic = this.GetComponent <AddPic>(); for (int i = 0; i < FacePlanes.Count; i++) { FacePlanes[i].SetActive(false); } int VideoBackgroundTexureHeight = Screen.height * 3; pixels = new Color[Screen.width * VideoBackgroundTexureHeight]; VideoBackgroundTexure2 = new Texture2D(Screen.width, Screen.height * 3, TextureFormat.RGB24, false); //faceMap = new Texture2D (576,324); }