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);
        }
Ejemplo n.º 2
0
    // 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;
    }
Ejemplo n.º 3
0
 public FindRoomTests()
 {
     _findRoom = new FindRoom();
 }