// Use this for initialization
    void Start()
    {
        tc2d = GetComponent <TilemapCollider2D>();
        tmr  = GetComponent <TilemapRenderer>();

        bossScript = GameObject.FindGameObjectWithTag("FinalBoss").GetComponent <FinalBossScript>();

        camera = Camera.main.gameObject.GetComponent <CameraScript>();
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        finalBoss         = GameObject.FindWithTag("EnemyLarge").GetComponent <FinalBossScript>();
        rb                = gameObject.GetComponent <Rigidbody2D>();
        playerTransform   = GameObject.FindWithTag("Player").transform;
        projectileParent  = GameObject.FindWithTag("ProjectileParent").transform;
        timeSinceLastShot = 0.0;

        health = 1;
    }
Ejemplo n.º 3
0
 void Start()
 {
     Application.targetFrameRate = 60;
     sfx             = GetComponent <SFXScript> ();
     bugQueueScript  = GetComponentInChildren <BugQueueScript> ();
     bugFarmScript   = GetComponentInChildren <BugSpawnerScript> ();
     healthPool      = GetComponent <HealthPoolScript> ();
     finalBossScript = GetComponentInChildren <FinalBossScript> ();
     aliceScript     = GetComponentInChildren <AliceScript> ();
     emilyScript     = GetComponentInChildren <EmilyScript> ();
     NextWave(2.0f);
 }
Ejemplo n.º 4
0
    // Start is called before the first frame update
    void Start()
    {
        // door = GameObject.FindWithTag("door").GetComponent<SpriteRenderer>;
        // door.setActive(false);



        if (GameObject.FindWithTag("Player") != null)
        {
            playerdata = GameObject.FindWithTag("Player").GetComponent <PlayerData>();
        }

        if (GameObject.FindWithTag("EnemyLarge") != null)
        {
            finalBoss = GameObject.FindWithTag("EnemyLarge").GetComponent <FinalBossScript>();
        }
        CurrentHealth = MaxHealth;
        UpdateHealth();
        //Scene ThisScene = SceneManager.GetActiveScene();
        sceneName = SceneManager.GetActiveScene().name;
    }