Exemplo n.º 1
0
    //Overriding-----------------------------------------------------------------------------------
    protected override void SetObjectEvent(string name)
    {
        switch (name)
        {
        case "fan":
            if (!Btns_clue[0].interactable)
            {
                Collect(1, "사용하지 않는 선풍기");
            }
            break;

        case "temperature":
            if (!Btns_clue[1].interactable)
            {
                Collect(2, "난방 설정 온도");
            }
            break;

        case "aircap":
            Collect(3, "에어캡");
            break;

        case "fridge_left":
            MF.Motion_Left();
            break;

        case "fridge_right":
            MF.Motion_Right();
            break;

        case "fan_plug":
            if (Btns_clue[0].interactable && Btns_clue[1].interactable && Btns_clue[2].interactable)
            {
                Motion_elec(0);
            }
            break;

        case "ligth1_plug":
            if (Btns_clue[0].interactable && Btns_clue[1].interactable && Btns_clue[2].interactable)
            {
                Motion_elec(1);
            }
            break;

        case "ligth2_plug":
            if (Btns_clue[0].interactable && Btns_clue[1].interactable && Btns_clue[2].interactable)
            {
                Motion_elec(2);
            }
            break;

        case "tv_plug":
            if (Btns_clue[0].interactable && Btns_clue[1].interactable && Btns_clue[2].interactable)
            {
                Motion_elec(3);
            }
            break;
        }
    }
Exemplo n.º 2
0
    //Overriding-----------------------------------------------------------------------------------
    protected override void SetObjectEvent(string name)
    {
        switch (name)
        {
        case "Bottle":
            Collect(1, "페트병");
            break;

        case "bone1":
            Collect(2, "닭뼈");
            break;

        case "icepack":
            Collect(3, "아이스팩");
            break;

        case "fridge_left":
            MF.Motion_Left();
            break;

        case "fridge_right":
            MF.Motion_Right();
            break;

        case "trash1_2":
            MD.Open(0);
            break;

        case "trash2_2":
            MD.Open(1);
            break;

        case "trash3_2":
            MD.Open(2);
            break;

        case "trash4_2":
            MD.Open(3);
            break;
        }
    }