// Use this for initialization void Start() { // NOTICE : DOM originalPosition = new Vector3(0,0,-3); originalRotation = this.transform.rotation; touchController = GameObject.FindGameObjectWithTag("MainObject").GetComponent<TouchController>(); foldCollide = GameObject.Find("Collision").GetComponent<FoldCollision>(); foldReference = GameObject.Find("backsidepivot").GetComponent<Fold>(); fingerList = new List<Vector2>(); prefab = this.transform; zLayerTmp = GVariables.zCoverLayer; reference3 = this.transform.FindChild("coverup").gameObject; script = gameObject.GetComponent<ChangeMeshScript>(); prevMouseState = false; currMouseState = false; firstTouch = false; isFolded = false; }
// Use this for initialization void Start() { originalRotation = this.transform.rotation; //originalPosition = new Vector3(0,0,-1); originalPosition = this.transform.position; touchController = GameObject.FindGameObjectWithTag("MainObject").GetComponent<TouchController>(); fingerList = new List<Vector2>(); tearPoints = new List<Vector3>(); // stop = 0; prefab = this.transform; zLayerTmp = GVariables.zFoldLayer; backsideReference = this.transform.FindChild("backside").gameObject; foldCollide = GameObject.Find("Collision").GetComponent<FoldCollision>(); backsideCollisionReference = GameObject.FindGameObjectsWithTag("FoldPlatform"); cameraReference = GameObject.Find("Main Camera"); script = gameObject.GetComponent<ChangeMeshScript>(); prevMousestate = false; currMouseState = false; firstTouch = false; isFolded = false; }