Ejemplo n.º 1
0
        public async Task UpdateAsync(Saying saying)
        {
            DbContext.Entry(saying).State = EntityState.Modified;

            await DbContext.SaveChangesAsync();
        }
Ejemplo n.º 2
0
 // 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);
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
    private Saying SystemCorruptBranch()
    {
        Saying root = new Saying(string.Empty, Amatic, new CorruptCallback()).Loop();

        return(root);
    }