public void ZoomIn(string room, Vector3 pos) { pos.z = -1; // Camera zooming if (room.Contains("Habitacion")) { //10 _mainCamera.gameObject.GetComponent <Camera2DTweener>().TweenTo(pos, 10f, 0.5f, this.gameObject); } else if (room.Contains("Entrada") || room.Contains("BaƱo")) { //5.5 _mainCamera.gameObject.GetComponent <Camera2DTweener>().TweenTo(pos, 5.5f, 0.5f, this.gameObject); } else if (room.Contains("Pasillo")) { //17.3 _mainCamera.gameObject.GetComponent <Camera2DTweener>().TweenTo(pos, 17.3f, 0.5f, this.gameObject); } else if (room.Contains("Salon")) { //15 _mainCamera.gameObject.GetComponent <Camera2DTweener>().TweenTo(pos, 15f, 0.5f, this.gameObject); } // Room shadow tweening GameObject shadow = GameObject.Find("Sombras/Sombra_" + room) as GameObject; if (shadow) { ShadowController sc = shadow.GetComponent <ShadowController>(); sc.ShadowIn(); } _zoomed = ZoomState.Zooming; _room = room; }