void AddEventTrigger(GameObject obj, houseType type) { GameObject door = obj.transform.Find("door/trigger").gameObject; if (!door.GetComponent <BuildingEventTrigger>()) { door.AddComponent <BuildingEventTrigger>(); } door.GetComponent <BuildingEventTrigger>().SetType(type); }
public House(int rooms, int floor, string state, double area, DateTime contructionDate, Boolean status, houseType htype) { Rooms = rooms; Floor = floor; State = state; Area = area; ConstructionDate = contructionDate; Status = status; HouseType = htype; }
public RentHouse(int rooms, int floor, string state, double area, DateTime constructionDate, Boolean status, houseType htype) : base(rooms, floor, state, area, constructionDate, status, htype) { }
public void SetType(houseType type) { this.type = type; }