private void trash_can(RaycastHit hit) { switch (hit.collider.name) { case "L1": L1.transform.Rotate(new Vector3(0, 180f, 0)); StartCoroutine(Center.Rotation(5.0f, L1, new Vector3(0, -180f, 0))); l_1.transform.localPosition = new Vector3(1f, -0.3f, 0); StartCoroutine(Room1.Position(4.0f, l_1, new Vector3(0, 0.4736f, 0))); break; case "L2": L2.transform.Rotate(new Vector3(0, 180f, 0)); StartCoroutine(Center.Rotation(5.0f, L2, new Vector3(0, -180f, 0))); l_2.transform.localPosition = new Vector3(1f, -0.3f, 0); StartCoroutine(Room1.Position(4.0f, l_2, new Vector3(0, 0.4736f, 0))); break; case "L3": L3.transform.Rotate(new Vector3(0, 180f, 0)); StartCoroutine(Center.Rotation(5.0f, L3, new Vector3(0, -180f, 0))); l_3.transform.localPosition = new Vector3(1f, -0.3f, 0); StartCoroutine(Room1.Position(4.0f, l_3, new Vector3(0, 0.4736f, 0))); break; } }
private void Desk(RaycastHit hit) { switch (hit.collider.name) { case "r1": r1.transform.localPosition = new Vector3(0.7785438f, -0.04612518f, -0.45f); StartCoroutine(Room1.Position(3.0f, r1, new Vector3(0.7785438f, -0.04612518f, -0.2429063f))); break; case "r2": r2.transform.localPosition = new Vector3(0.7785438f, -0.1423045f, -0.45f); StartCoroutine(Room1.Position(3.0f, r2, new Vector3(0.7785438f, -0.1423045f, -0.2429063f))); break; case "l1": l1.transform.localPosition = new Vector3(0.02821602f, -0.04612518f, -0.45f); StartCoroutine(Room1.Position(3.0f, l1, new Vector3(0.02821602f, -0.1423045f, -0.2429063f))); break; case "l2": l2.transform.localPosition = new Vector3(0.02821602f, -0.1423045f, -0.45f); StartCoroutine(Room1.Position(3.0f, l2, new Vector3(0.02821602f, -0.1423045f, -0.2429063f))); break; case "m": m.transform.localPosition = new Vector3(0.4033799f, -0.04612518f, -0.45f); StartCoroutine(Room1.Position(3.0f, m, new Vector3(0.4033799f, -0.04612518f, -0.2429063f))); break; } }
private void Desk(RaycastHit hit) { switch (hit.collider.name) { case "d1": d1.transform.localPosition = new Vector3(0.2510861f, 0.7788424f, 0.5f); StartCoroutine(Room1.Position(4.0f, d1, new Vector3(0.2510861f, 0.7788424f, 0.2488438f))); break; case "d2": d2.transform.localPosition = new Vector3(-0.2510089f, 0.7788424f, 0.5f); StartCoroutine(Room1.Position(4.0f, d2, new Vector3(-0.2510089f, 0.7788424f, 0.2488438f))); break; case "d3": d3.transform.localPosition = new Vector3(0.2510861f, 0.7788424f, 0.5f); StartCoroutine(Room1.Position(4.0f, d3, new Vector3(0.2510861f, 0.7788424f, 0.2488438f))); break; case "d4": d4.transform.localPosition = new Vector3(-0.2510089f, 0.7788424f, 0.5f); StartCoroutine(Room1.Position(4.0f, d4, new Vector3(-0.2510089f, 0.7788424f, 0.2488438f))); break; case "d5": d5.transform.localPosition = new Vector3(0.2510861f, 0.7788424f, 0.5f); StartCoroutine(Room1.Position(4.0f, d5, new Vector3(0.2510861f, 0.7788424f, 0.2488438f))); break; case "d6": d6.transform.localPosition = new Vector3(-0.2510089f, 0.7788424f, 0.5f); StartCoroutine(Room1.Position(4.0f, d6, new Vector3(-0.2510089f, 0.7788424f, 0.2488438f))); break; } }
private void Desk(RaycastHit hit) { switch (hit.collider.name) { case "L": L.transform.localPosition = new Vector3(0.308f, 0.7983999f, 0.8f); StartCoroutine(Room1.Position(4.0f, L, new Vector3(0.308f, 0.7983999f, 0.4344f))); break; case "R1": R1.transform.localPosition = new Vector3(-0.4864f, 0.8023999f, 0.8f); StartCoroutine(Room1.Position(4.0f, R1, new Vector3(-0.4864f, 0.8023999f, 0.4344f))); break; case "R2": R2.transform.localPosition = new Vector3(-0.4864f, 0.5743999f, 0.8f); StartCoroutine(Room1.Position(4.0f, R2, new Vector3(-0.4864f, 0.5743999f, 0.4344f))); break; case "R3": R3.transform.localPosition = new Vector3(-0.4864f, 0.3104f, 0.8f); StartCoroutine(Room1.Position(4.0f, R3, new Vector3(-0.4864f, 0.3104f, 0.4344f))); break; } }
private void Bedside_table(RaycastHit hit) { switch (hit.collider.name) { case "g1": g1.transform.Rotate(new Vector3(-90, 0, 0)); StartCoroutine(Center.Rotation(5.0f, g1, new Vector3(90, 0, 0))); break; case "g2": g2.transform.localPosition = new Vector3(0, 0.7195432f, 0.3f); StartCoroutine(Room1.Position(4.0f, g2, new Vector3(0, 0.7195432f, 0f))); break; case "g3": g3.transform.localPosition = new Vector3(0, 0.5698911f, 0.3f); StartCoroutine(Room1.Position(4.0f, g3, new Vector3(0, 0.5698911f, 0))); break; case "g4": g4.transform.localPosition = new Vector3(0, 0.4227006f, 0.3f); StartCoroutine(Room1.Position(4.0f, g4, new Vector3(0, 0.4227006f, 0))); break; case "g5": g5.transform.localPosition = new Vector3(0, 0.2434302f, 0.3f); StartCoroutine(Room1.Position(4.0f, g5, new Vector3(0, 0.2434302f, 0))); break; case "g6": g6.transform.localPosition = new Vector3(0.1634076f, 1.013223f, 0.08f); StartCoroutine(Room1.Position(4.0f, g6, new Vector3(0.1634076f, 1.013223f, -0.06280849f))); break; case "g7": g7.transform.localPosition = new Vector3(0.1634076f, 0.9257064f, 0.08f); StartCoroutine(Room1.Position(4.0f, g7, new Vector3(0.1634076f, 0.9257064f, -0.06280849f))); break; case "g8": g8.transform.localPosition = new Vector3(0.1634076f, 0.8402296f, 0.08f); StartCoroutine(Room1.Position(4.0f, g8, new Vector3(0.1634076f, 0.8402296f, -0.06280849f))); break; case "key3": Character.Items.Add("key3"); Destroy(key3); b1.gameObject.GetComponent <Image>().sprite = i1; inf.GetComponent <Text>().text = "you get key2."; StartCoroutine(clean()); break; } }
private void Desk(RaycastHit hit) { switch (hit.collider.name) { case "d11": d11.transform.localPosition = new Vector3(0, 0, 0.3f); StartCoroutine(Room1.Position(4.0f, d11, new Vector3(0, 0, 0))); break; case "d12": d12.transform.localPosition = new Vector3(-0.4988959f, -0.02291433f, 0.3f); StartCoroutine(Room1.Position(4.0f, d12, new Vector3(-0.4988959f, -0.02291433f, 0.003327618f))); break; case "d13": d13.transform.localPosition = new Vector3(-0.4988959f, -0.2234892f, 0.5f); StartCoroutine(Room1.Position(4.0f, d13, new Vector3(-0.4988959f, -0.2234892f, 0.003327618f))); break; case "d21": d21.transform.localPosition = new Vector3(0, 0, 0.3f); StartCoroutine(Room1.Position(4.0f, d21, new Vector3(0, 0, 0))); break; case "d22": d22.transform.localPosition = new Vector3(-0.4988959f, -0.02291433f, 0.3f); StartCoroutine(Room1.Position(4.0f, d22, new Vector3(-0.4988959f, -0.02291433f, 0.003327618f))); break; case "d23": d23.transform.localPosition = new Vector3(-0.4988959f, -0.2234892f, 0.3f); StartCoroutine(Room1.Position(4.0f, d23, new Vector3(-0.4988959f, -0.2234892f, 0.003327618f))); break; case "d31": d31.transform.localPosition = new Vector3(0, 0, 0.3f); StartCoroutine(Room1.Position(4.0f, d31, new Vector3(0, 0, 0))); break; case "d32": d32.transform.localPosition = new Vector3(-0.4988959f, -0.02291433f, 0.3f); StartCoroutine(Room1.Position(4.0f, d32, new Vector3(-0.4988959f, -0.02291433f, 0.003327618f))); break; case "d33": d33.transform.localPosition = new Vector3(-0.4988959f, -0.2234892f, 0.3f); StartCoroutine(Room1.Position(4.0f, d33, new Vector3(-0.4988959f, -0.2234892f, 0.003327618f))); break; } }