Beispiel #1
0
 protected string GetFooter()
 {
     if (TempScriptHelper.GetRuleShowState())
     {
         var rule = TempScriptHelper.GetCodeRule();
         return(rule);
     }
     return(null);
 }
Beispiel #2
0
 private void InitEnviroment()
 {
     if (script == null)
     {
         script = MonoScript.FromScriptableObject(this);
     }
     showRule = TempScriptHelper.GetRuleShowState();
     if (string.IsNullOrEmpty(codeRule))
     {
         codeRule = TempScriptHelper.GetCodeRule();
     }
     if (string.IsNullOrEmpty(authorName))
     {
         authorName = TempScriptHelper.GetAuthor();
     }
     if (string.IsNullOrEmpty(authorName))
     {
         isSetting = true;
     }
 }