翻牌調(diào)用MIAN 的CheckIsGameOver();時(shí)候出錯(cuò)了
為什么我翻牌調(diào)用:
Camera.main.gameObject.GetComponent<gamemain>().CheckIsGameOver();
就會(huì)出現(xiàn)問(wèn)題說(shuō):
NullReferenceException: Object reference not set to an instance of an object
cardfilp+<FlipCardToFront>c__Iterator0.MoveNext () (at Assets/Script/cardfilp.cs:74)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
點(diǎn)一次出現(xiàn)一次這個(gè)DUBUG
2018-11-03
在哪里設(shè)置?
2018-09-06
找到問(wèn)題了EMMMMAINCAMERA沒(méi)有設(shè)置 尷尬 尷尬