Beispiel #1
0
 public override void OnEnter()
 {
     if ((asset1 != null) && (asset2 != null) && (storeResult != null))
     {
         try {
             storeResult.Value = Lua.Run(string.Format("return GetStatus({0}, {1})",
                                                       DialogueLua.SpacesToUnderscores(DialogueLua.DoubleQuotesToSingle(asset1.Value)),
                                                       DialogueLua.SpacesToUnderscores(DialogueLua.DoubleQuotesToSingle(asset2.Value))), DialogueDebug.LogInfo).AsString;
         } catch (System.NullReferenceException) {
         }
     }
     Finish();
 }
Beispiel #2
0
 public override void OnEnter()
 {
     if ((asset1 != null) && (asset2 != null) && (statusValue != null))
     {
         try {
             Lua.Run(string.Format("SetStatus({0}, {1}, \"{2}\")",
                                   DialogueLua.SpacesToUnderscores(DialogueLua.DoubleQuotesToSingle(asset1.Value)),
                                   DialogueLua.SpacesToUnderscores(DialogueLua.DoubleQuotesToSingle(asset2.Value)),
                                   DialogueLua.DoubleQuotesToSingle(statusValue.Value)), DialogueDebug.LogInfo);
         } catch (System.NullReferenceException) {
         }
     }
     Finish();
 }