Example #1
0
 // Use this for initialization
 void Start()
 {
     ps = player.GetComponent <PlayerStats> ();
     bs = boss.GetComponent <BossOneStats> ();
     resume.SetActive(false);
     exit.SetActive(false);
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     t = 0.0f;
     patternZeroCooldown = cooldown;
     patternOneCooldown  = 1.0f;
     origCooldown        = cooldown;
     bos     = this.GetComponentInParent <BossOneStats> ();
     bosLife = bos.health;
 }
Example #3
0
    // 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>();
    }
Example #4
0
 // Use this for initialization
 void Start()
 {
     rb2d = this.GetComponent <Rigidbody2D> ();
     bos  = GameObject.Find("Boss 1").GetComponent <BossOneStats> ();
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     bs = boss.GetComponent <BossOneStats> ();
 }