Example #1
0
    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>();
    }
Example #2
0
 void Start()
 {
     //Give a maximum lifetime to the object.
     GameObject.Destroy(gameObject, 15f);
     God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>();
 }
Example #3
0
 public virtual void Start()
 {
     StartCoroutine("checkFront");
     StartCoroutine("shoot");
     God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>();
 }