void NoteUserIsPointing(string key, DataStore.IValue value) { //TODO make Diana look forward if value is false if ((value as DataStore.BoolValue).val) { SetValue("me:alertness", 7, "user is pointing"); SetValue("me:attending", "user", "user is pointing"); lastSalientTime = Time.time; } }
void NoteUserIsSpeaking(string key, DataStore.IValue value) { if ((value as DataStore.BoolValue).val) { // User's talking, better pay attention. SetValue("me:alertness", 7, "user is speaking"); SetValue("me:attending", "user", "user is speaking"); lastSalientTime = Time.time; } }
void NoteIntent(string key, DataStore.IValue value) { string action = value.ToString(); if (string.IsNullOrEmpty(action)) { SetValue("me:attending", "none", "me:intent:action is empty"); } else if (action == "point") { SetValue("me:attending", "user", "pointing"); } }
void NoteUserIsEngaged(string key, DataStore.IValue value) { if ((value as DataStore.BoolValue).val) { // User has just approached the table. Better perk up. SetValue("me:alertness", 7, "user arrived"); SetValue("me:attending", "user", "user arrived"); SetValue("me:intent:lookAt", "user", "user arrived"); } else { // User has disappeared. Quit trying to look at them. SetValue("me:alertness", 6, "user departed"); SetValue("me:attending", "none", "user departed"); SetValue("me:intent:lookAt", "", "user departed"); } }