Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player").GetComponent<L2_Ship_Script>();
        currentHealth = totalHealth;

        musicManager = GameObject.FindGameObjectWithTag("AudioSourceManager").GetComponent<Music_Manager_Script>();
    }
Exemplo n.º 2
0
    void Start()
    {
        //Spawn fills the spawnList
        Spawn();
        //DoSpawning goes through the spawnList and does the spawning
        StartCoroutine(DoSpawning());

        musicManager = GameObject.FindGameObjectWithTag("AudioSourceManager").GetComponent<Music_Manager_Script>();
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     musicManager = GameObject.FindGameObjectWithTag("AudioSourceManager").GetComponent<Music_Manager_Script>();
 }
    // Use this for initialization
    void Start()
    {
        mMaterial = iShield.renderer.material;

        mTime = 0.0f;

        initialColor = this.mMaterial.color;

        audios = this.gameObject.GetComponents<AudioSource>();

        musicManager = GameObject.FindGameObjectWithTag("AudioSourceManager").GetComponent<Music_Manager_Script>();
    }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     StartCoroutine("SwitchToTitle");
     musicManager = GameObject.FindGameObjectWithTag("AudioSourceManager").GetComponent<Music_Manager_Script>();
 }
Exemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        startPosition = this.transform.position;
        shieldSize = 2.5f;

        isShielded = true;
        StartCoroutine("ResetShield");

        baseReloadTime = reloadTime;

        hitsOnElite.Add(true);

        audios = this.gameObject.GetComponents<AudioSource>();

        musicManager = GameObject.FindGameObjectWithTag("AudioSourceManager").GetComponent<Music_Manager_Script>();

        stats = GameObject.FindGameObjectWithTag("Stats").GetComponent<Stat_Counter_Script>();
    }