Esempio n. 1
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }

        else
        {
            Destroy(gameObject);
        }
    }
Esempio n. 2
0
        public async Task <bool> LeaveAsync(int id, int userId)
        {
            RecipeShare share = await _recipesRepository.LeaveAsync(id, userId);

            return(share.IsAccepted.Value != false);
        }