コード例 #1
0
    public void SelectRoomToFurnish()
    {
        GameObject     g  = GameObject.Find("LevelManager");
        HospitalStates hs = g.GetComponent <HospitalStates>();

        hs._machine.changeState <HospitalSelectRoomFurnish>();
    }
コード例 #2
0
    public void BuildABench()
    {
        HospitalStates hs = GetComponent <HospitalStates>();

        hs.ChosenItem = hs.Bench;
        hs._machine.changeState <HostpitalFurnishSelectPos>();
    }
コード例 #3
0
    public void FurnishRoomDoors()
    {
        GameObject     g  = GameObject.Find("LevelManager");
        HospitalStates hs = g.GetComponent <HospitalStates>();

        hs.ChosenItem = hs.Door;
        hs._machine.changeState <HostpitalFurnishSelectPos>();
    }
コード例 #4
0
    public void BuildGPOffice()
    {
        GameObject     g  = GameObject.Find("LevelManager");
        HospitalStates hs = g.GetComponent <HospitalStates> ();

        hs.roomSelectedFromUI = RoomType.GPOffice;
        hs._machine.changeState <HospitalRoomPlacement> ();
    }
コード例 #5
0
    void OnEnable()
    {
        ///get a ref to the hospital states object
        hospitalStates = GameObject.Find("LevelManager").GetComponent <HospitalStates>();

        print("i am awake, room is " + hospitalStates.SelectedFurnishRoom.type);

        InitButtonsForRoomType(hospitalStates.SelectedFurnishRoom.type);
    }
コード例 #6
0
    public void RemoveARoom()
    {
        HospitalStates hs = GetComponent <HospitalStates> ();

        hs._machine.changeState <HospitalRemoveRoom> ();
    }