#Will post a big ass message but in a
1 messages · Page 1 of 1 (latest)
❗ NullReferenceException: Object reference not set to an instance of an object GameOver.Continue () (at Assets/Scripts/GameOver.cs:41) UnityEngine.Events.InvokableCall.Invoke () (at <823fb226a3f9439cb41fdcb61f9c86a1>:0) UnityEngine.Events.UnityEvent.Invoke () (at <823fb226a3f9439cb41fdcb61f9c86a1>: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)
big ass error
This is the code
https://pastebin.pl/view/efee9e44
And the other script
👇
public void Continue() {
InterstitialScript.instance.RequestInterstitial();
if(!pressed){
gameObject.SetActive(false);
PlayerScript.Instance.StartOver();
pressed = true;
}
else{
continueButton.GetComponent<Image>().color = new Color(1, 1, 1, 0.3f);
}
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
What line is 41?