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