NullReferenceException: Object reference not set to an instance of an object BattleStageControl.OpenBattleRewardNext () (at Assets/0.C#/Battle/BattleStageControl.cs:102) BattleStageControl.OpenBattleReward () (at Assets/0.C#/Battle/BattleStageControl.cs:70) EventCenter.Broadcast (MeventType MeventType) (at Assets/0.C#/Common/EventCenter.cs:162) FuguiState.DeleteFugui02 (System.String site, System.String FuguiName) (at Assets/0.C#/Map/FuguiState.cs:231) EventCenter.Broadcast[T,X] (MeventType MeventType, T arg1, X arg2) (at Assets/0.C#/Common/EventCenter.cs:196) SaveDataManager.DeleteFugui01 (System.String site, System.String FuguiName) (at Assets/0.C#/Common/SaveDataManager.cs:517) EventCenter.Broadcast[T,X] (MeventType MeventType, T arg1, X arg2) (at Assets/0.C#/Common/EventCenter.cs:196) FuguiActionTriger.clickToDelete () (at Assets/0.C#/Battle/FuguiActionTriger.cs:519) UnityEngine.Events.InvokableCall.Invoke () (at <c6956609c5d74f5d8e6ed4e5e5f40cc2>:0) UnityEngine.Events.UnityEvent.Invoke () (at <c6956609c5d74f5d8e6ed4e5e5f40cc2>:0) UnityEngine.UI.Button.Press () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:70) UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:114) UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:57) UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:272) UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)什么意思
时间: 2024-02-22 20:01:14 浏览: 93
The C# Player's Guide - 2nd Edition
5星 · 资源好评率100%
这是一个程序异常的错误信息,错误提示为 "对象引用未设置为对象实例",在程序中有一个对象没有被正确初始化,导致程序运行出错。具体的错误出现在Assets/0.C#/Battle/BattleStageControl.cs文件的第102行和第70行,以及其他几个文件中。需要检查代码中是否有未初始化的对象,并且进行修复。
阅读全文