在做UI面板的时候,在运行游戏的时候,出现了异常,第一个面板没有实例化出来,报了一个空指针
异常信息:
NullReferenceException: Object reference not set to an instance of an object
StartPanel.OnPause () (at Assets/Scripts/UIPanel/StartPanel.cs:28)
UIManager.PushPanel (UIPanelType panelType) (at Assets/UIFramework/Manager/UIManager.cs:69)
StartPanel.OnLoginClick () (at Assets/Scripts/UIPanel/StartPanel.cs:22)
出问题的代码:
unity5.6.5f1 DOTween+Pro+0.9.550(1)