コード例 #1
0
ファイル: MemoryNode.cs プロジェクト: foxor/LD41
    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;
        }
    }
コード例 #2
0
ファイル: ConstDir.cs プロジェクト: foxor/LD41
 protected override IEnumerator ActivateInner()
 {
     yield return(output.Activate(direction));
 }