示例#1
0
    private void Start()
    {
        //initialize all of the interactions and triggers
        interactableComponent = GetComponent <InteractableBase>();
        interactableComponent.AddInteractionToList("Place Item", HoldItem);

        //interactableComponent.AddInteractionToList("Take Egg", SpatulaGrab);
        interactableComponent.AddInteractionTrigger("Empty into");

        interactableComponent.AddInteractionToList("Fill water", FillWater);
    }