Ejemplo n.º 1
0
    bool HandleHitActions(IInteractive interact, Dictionary <string, string> actions)
    {
        bool   executed  = false;
        string actionKey = FindActionKeyDown(actions);

        if (actionKey != null)
        {
            interact.ExecuteHitAction(actions[actionKey], gameObject, carryObject);
            executed = true;
        }

        return(executed);
    }