// 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; }
// 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); }
// 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; } }
// 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> (); }
// Use this for initialization void Start() { this.GetComponent <Text> ().text = "Bits:0"; gc = GameObject.FindObjectOfType <garbage_collector> (); }
// Use this for initialization void Start() { gc = GameObject.FindObjectOfType <garbage_collector> (); sc = GameObject.FindObjectOfType <scanner> (); }
// Use this for initialization void Start() { cy = transform.position.y; gc = GameObject.FindObjectOfType <garbage_collector> (); }