Beispiel #1
0
 // 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);
     }
 }
Beispiel #2
0
 public async Task UpdateSprayerAsync(Sprayer sprayer)
 {
     _dbContext.Sprayers.Update(sprayer);
     await _dbContext.SaveChangesAsync();
 }
Beispiel #3
0
        public async Task AddSprayerAsync(Sprayer sprayer)
        {
            await _dbContext.Sprayers.AddAsync(sprayer);

            await _dbContext.SaveChangesAsync();
        }