public void SetData <T>(string dataName, T data) { if (dataName == null) { return; } BTDebug.Info("BTDatabase: {0} = {1}", dataName, data); dataDic[dataName] = new WeakReference <object>(data); }
protected override BTResult OnTick(BTContext context) { string text = Message ?? ""; switch (level) { case BTLogLevel.Info: BTDebug.Info(text); break; case BTLogLevel.Warning: BTDebug.Warning(text); break; case BTLogLevel.Error: BTDebug.Error(text); break; } return(BTResult.Success.Create(Message == null? "消息为空" : null)); }