Ejemplo n.º 1
0
    public bool Interact(Item item, Character c)
    {
        if (!_IsValidItem(item))
        {
            return(false);
        }


        _interactingCharacter = c;
        _currentItemType      = item.Type;
        Destroy(item.gameObject);
        OnBodyPartsChanged?.Invoke();
        AudioManager.Instance.Play("Combine");

        if (_currentBody.BodyIsComplete())
        {
            _interactingCharacter.disableMovement = true;
            _StartQTE();
        }

        _UpdateUI();

        return(true);
    }
Ejemplo n.º 2
0
 private void _CreateNewBody()
 {
     _currentBody = new Body(6);
     OnBodyPartsChanged?.Invoke();
     _UpdateUI();
 }