private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } }
public async Task <bool> LeaveAsync(int id, int userId) { RecipeShare share = await _recipesRepository.LeaveAsync(id, userId); return(share.IsAccepted.Value != false); }