public async Task UpdateAsync(Saying saying) { DbContext.Entry(saying).State = EntityState.Modified; await DbContext.SaveChangesAsync(); }
// TODO: callback should trigger next dialog?? public void HeadNodCallback(bool wasHeadYes) { this.currentSaying = wasHeadYes ? this.currentSaying.YesSaying : this.currentSaying.NoSaying; Debug.Log("Head detected: " + wasHeadYes); }
/// <summary> /// If you really need to, you can set the saying manually through here /// In most cases, better to let the tree walk itself, however /// </summary> /// <param name="saying"></param> public void SetCurrentSaying(Saying saying) { this.currentSaying = saying; }
private Saying SystemCorruptBranch() { Saying root = new Saying(string.Empty, Amatic, new CorruptCallback()).Loop(); return(root); }