// Update is called once per frame void Update() { if (SteamVR_Actions.default_GrabGrip.GetStateDown(SteamVR_Input_Sources.LeftHand)) { colorPicker.SetActive(!colorPicker.activeSelf); cylinder.SetActive(!cylinder.activeSelf); Sprayer.openColorPicker(colorPicker.activeSelf); } }
public async Task UpdateSprayerAsync(Sprayer sprayer) { _dbContext.Sprayers.Update(sprayer); await _dbContext.SaveChangesAsync(); }
public async Task AddSprayerAsync(Sprayer sprayer) { await _dbContext.Sprayers.AddAsync(sprayer); await _dbContext.SaveChangesAsync(); }