Skip to content
Snippets Groups Projects
Commit efdd1837 authored by JevantJedidia's avatar JevantJedidia
Browse files

fix null reference

parent ef8f9101
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ public class BossHealth : MonoBehaviour
bool isSinking;
void Awake ()
void Start ()
{
anim = GetComponent <Animator> ();
bossAudio = GetComponent <AudioSource> ();
......
......@@ -13,7 +13,7 @@ public class SwitchWeapon : MonoBehaviour
public bool boughtShotgun;
public bool boughtBow;
private void Awake()
private void Start()
{
regularGun = GameObject.Find("Gun");
regularGunEnd = GameObject.Find("GunBarrelEnd");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment