private void Compose() { var hotel = new Hotel.Hotel(_numberOfRoom); var findRoom = new FindRoom(); var reservation = new RoomReservation(hotel, findRoom); var validation = new ReservationValidation(); _reservation = new RoomReservationDecorator(reservation, validation); }
// Start is called before the first frame update void Start() { _instance = this; instance = _instance; pathGameObject = GameObject.FindGameObjectWithTag("Capsule"); target = GameObject.FindGameObjectWithTag("Target"); seeker = GameObject.FindGameObjectWithTag("Seeker"); canvas = transform.Find("Canvas").gameObject.GetComponent <Canvas>(); canvas.worldCamera = Camera.main; buttonText = canvas.transform.Find("Button").gameObject.GetComponent <Button>().transform.Find("Text (TMP)").GetComponent <TMP_Text>(); buttonText.text = GetComponentInParent <Transform>().name; Vector3 x = transform.Find("A*Path").position; Vector3 y = new Vector3(0, 0.5f, 0); transform.Find("A*Path").position += y; }
public FindRoomTests() { _findRoom = new FindRoom(); }