Exemple #1
0
    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;
        }
    }
Exemple #2
0
 protected override IEnumerator ActivateInner()
 {
     yield return(output.Activate(direction));
 }