Esempio n. 1
0
    private TempRestart restart; //delete this later


    void Start()
    {
        FindObjectOfType <CameraFollow>().bossBattle   = true;
        FindObjectOfType <PlayerMovement>().bossBatlle = true;
        health         = startHealth;
        anim           = gameObject.GetComponent <Animator>();
        bossTeleport   = gameObject.GetComponent <BossTeleport>();
        bossProjectile = gameObject.GetComponent <BossProjectile>();
        bossVine       = gameObject.GetComponent <BossVine>();
        bossPulse      = gameObject.GetComponent <BossPulse>();
        bossHell       = gameObject.GetComponent <BossBulletHell>();
        restart        = gameObject.GetComponent <TempRestart>(); //Delete this later
        StartCoroutine(BeginFight());
    }
Esempio n. 2
0
 void Awake()
 {
     player = this.GetComponent <PlayerMovement>();
     enemy  = this.GetComponent <BossTeleport>();
 }