void Start() { switch(PersistentBeat.difficulty){ case 0: PersistentBeat.lives = 4; ammo = 10; break; case 1: PersistentBeat.lives = 2; ammo = 7; break; case 2: PersistentBeat.lives = 0; ammo = 5; break; } God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>(); }
void Start() { //Give a maximum lifetime to the object. GameObject.Destroy(gameObject, 15f); God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>(); }
public virtual void Start() { StartCoroutine("checkFront"); StartCoroutine("shoot"); God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>(); }