protected override IEnumerator ActivateInner() { object memory = null; if (!Level.currentLevel.memory.TryGetValue(memoryLocation, out memory)) { Level.currentLevel.errorMessage = "Your adventurer doesn't remember a variable with name " + memoryLocation; yield break; } if (memory is T) { yield return(output.Activate((T)memory)); } else { Level.currentLevel.errorMessage = "Your adventurer didn't know how to interpert " + memoryLocation + "=" + memory.ToString() + " as a " + typeof(T).Name; } }
protected override IEnumerator ActivateInner() { yield return(output.Activate(direction)); }