示例#1
0
 // When user press e in front of the station
 public void gotInteracted()
 {
     if (stage == "available")
     {
         inventory = interactionState.startState(canvas);
         storage.setother(inventory);
         inventory.setother(storage);
         stage = "watingForPickedItems";
     }
 }
    // When user press e in front of the station
    public void gotInteracted()
    {
        mainCanvas.SetActive(true);
        inventory = interactionState.startState(canvas);
        trash.setother(inventory);
        inventory.setother(trash);
        inventory.makeAvailableToTransfer(true);
        trash.makeAvailableToTransfer(true);
        GameObject s = trash.allSlots[0];
        Event      e = Event.current;

        EventSystem.current.SetSelectedGameObject(s);
        stage = "watingForPickedItems";
    }