Esempio n. 1
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;
     }
 }
Esempio n. 2
0
 public void Update()
 {
     author = TempScriptHelper.GetAuthor();
     time   = System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
 }