Beispiel #1
0
    void HandleActiveItems()
    {
        FindItemForSelection();

        if (Input.GetKeyDown(KeyCode.Space))
        {
            if (sheltered)
            {
                sheltered             = false;
                spriteRenderer.sprite = originalSprite;
            }
            else if (highlighted != null)
            {
                highlighted.Use();
                highlighted = null;
            }
        }
    }