// Use this for initialization void Start() { ps = player.GetComponent <PlayerStats> (); bs = boss.GetComponent <BossOneStats> (); resume.SetActive(false); exit.SetActive(false); }
// Use this for initialization void Start() { t = 0.0f; patternZeroCooldown = cooldown; patternOneCooldown = 1.0f; origCooldown = cooldown; bos = this.GetComponentInParent <BossOneStats> (); bosLife = bos.health; }
// Use this for initialization void Start() { AS = GetComponent <AudioSource>(); AS.clip = ac1; AS.loop = true; AS.Play(); GameObject player, boss; player = GameObject.Find("Player"); ps = player.GetComponent <PlayerStats>(); boss = GameObject.Find("Boss 1"); bos = (BossOneStats)boss.GetComponent <BossOneStats>(); }
// Use this for initialization void Start() { rb2d = this.GetComponent <Rigidbody2D> (); bos = GameObject.Find("Boss 1").GetComponent <BossOneStats> (); }
// Use this for initialization void Start() { bs = boss.GetComponent <BossOneStats> (); }