Assets.Scripts.Environment.Interactable.BasicDoor.CanUse C# (CSharp) Method

CanUse() private method

private CanUse ( ) : bool
return bool
        private bool CanUse()
        {
            if (string.IsNullOrEmpty(RequiredKey) || PlayerInventory.HasItem(RequiredKey))
            {
                return true;
            }

            return false;
        }
    }