Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     gc          = FindObjectOfType <garbage_collector> ();
     audioSource = this.GetComponent <AudioSource> ();
     this.GetComponent <Collider2D>().enabled = true;
     this.GetComponentInChildren <SpriteRenderer>().enabled = true;
     //audioSource.clip = null;
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     health      = 50;
     bossEnabled = false;
     attackReady = 0f;
     gc          = GameObject.FindObjectOfType <garbage_collector> ();
     player      = GameObject.FindObjectOfType <player> ();
     sr          = GetComponentInChildren <SpriteRenderer> ();
     ani         = this.GetComponentInChildren <Animator>();
     ani.SetBool("charge", false);
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     blockMode = false;
     cy        = transform.position.y;
     gc        = GameObject.FindObjectOfType <garbage_collector> ();
     tcp       = this.GetComponentsInChildren <blue_cheat_prev> ();
     bmi       = GameObject.FindGameObjectWithTag("block_mode");
     if (bmi != null)
     {
         blockMode = true;
     }
 }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        //enemyspawner = GameObject.FindObjectOfType<enemy_spawner> ();
        cy = transform.position.y;

        gc                    = GameObject.FindObjectOfType <garbage_collector> ();
        ani                   = this.GetComponentInChildren <Animator>();
        colliders             = this.GetComponents <Collider2D>();
        colliders [0].enabled = true;
        colliders [1].enabled = true;
        ani.SetBool("isDead", false);
        audioSource = this.GetComponent <AudioSource> ();
    }
Ejemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     this.GetComponent <Text> ().text = "Bits:0";
     gc = GameObject.FindObjectOfType <garbage_collector> ();
 }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     gc = GameObject.FindObjectOfType <garbage_collector> ();
     sc = GameObject.FindObjectOfType <scanner> ();
 }
Ejemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     cy = transform.position.y;
     gc = GameObject.FindObjectOfType <garbage_collector> ();
 }