我在Playscape分析上遇到了一些问题。当我尝试报告级别启动时,我得到以下错误:
I/Unity ( 6366): NullReferenceException: Object reference not set to an instance of an object
I/Unity ( 6366): at Playscape.Analytics.Report.ReportLevelStarted (System.String level, IDictionary`2 additionalParams) [0x00000] in <filename unknown>:0
I/Unity ( 6366): at GreenroomScript.Start () [0x00000] in <filename unknown>:0下面是我使用的代码行:
Report.Instance.ReportLevelStarted(AppHelper.sharedHelper().missionManager.m_activeMissionSet.ToString(), null);AppHelper.sharedHelper().missionManager.m_activeMissionSet.ToString();正在打印字符串。
有人知道问题出在哪里吗?
发布于 2015-09-28 07:13:07
在……里面
public void ReportLevelStarted(string level, IDictionary<string, double> additionalParams)方法additionalParams不能是null。而不是null,而是传递一个空字典。
https://stackoverflow.com/questions/32776504
复制相似问题