Example #1
0
    // Use this for initialization
    void Awake()
    {
        spawnEnemyScript = GameObject.Find("SpawnEnemyCore").GetComponent <SpawnEnemyScript>();

        roundsText = gameObject.GetComponent <Text>();
        anim       = GetComponent <Animator>();
    }
Example #2
0
 void Start()
 {
     rce    = GameObject.FindGameObjectWithTag("Checkenemycam").GetComponent <RadianCheckEnemy>();
     name   = name1.name;
     main   = GameObject.Find("MainCamera").GetComponent <CameraMainScript>();
     player = GameObject.Find("Player").GetComponent <PlayerController>();
     spaw   = GameObject.FindGameObjectWithTag("SpawnEnemy").GetComponent <SpawnEnemyScript>();
 }
 // Use this for initialization
 void Start()
 {
     bullet         = GameObject.Find("EnemyBullet");
     playerObjectiu = Random.Range(1, 5);
     //    chase = GameObject.Find("Enemy").GetComponent<Chase>();
     SpawnEnemyCore         = GameObject.Find("SpawnEnemyCore").GetComponent <SpawnEnemyScript>();
     enemyDoneSad.enabled   = true;
     enemyDoneHappy.enabled = false;
     FindAllPlayers();
 }
Example #4
0
    // Use this for initialization
    void Awake()
    {
        gp    = GameObject.Find("Points").GetComponent <GestionPuntos>();
        spawn = GameObject.Find("SpawnEnemyCore").GetComponent <SpawnEnemyScript>();

        anim = gameObject.GetComponent <Animator>();

        bullet4 = GameObject.Find("Bullet4").GetComponent <Bullet4>();
        points4 = gameObject.GetComponent <Text>();
    }
Example #5
0
    // Use this for initialization
    void Start()
    {
        player = GetComponent <PlayerController>();


        if (SceneManager.GetActiveScene().name == "Scene")
        {
            spaw = GameObject.FindGameObjectWithTag("SpawnEnemy").GetComponent <SpawnEnemyScript>();
        }
    }
Example #6
0
    void Start()
    {
        gp = GameObject.Find("Points").GetComponent <GestionPuntos>();

        bullet1        = GameObject.Find("Bullet1").GetComponent <Bullet1>();
        bullet2        = GameObject.Find("Bullet2").GetComponent <Bullet2>();
        bullet3        = GameObject.Find("Bullet3").GetComponent <Bullet3>();
        bullet4        = GameObject.Find("Bullet4").GetComponent <Bullet4>();
        SpawnEnemyCore = GameObject.Find("SpawnEnemyCore").GetComponent <SpawnEnemyScript>();

        playerObjectiu = Random.Range(1, 4);    // esta chapat a 1 per fer probes, haura de ser un 4
        FindAllPlayers();
        vida  = 1;
        tempo = 5;

        rendContent.enabled = false;
        rendNormal.enabled  = true;
    }
 private void Start()
 {
     spawnEnemyScript = spawnManager.GetComponent <SpawnEnemyScript>();
     isActive         = false;
 }
Example #8
0
 // Use this for initialization
 void Start()
 {
     txt  = GetComponent <Text>();
     spaw = GameObject.FindGameObjectWithTag("SpawnEnemy").GetComponent <SpawnEnemyScript>();
 }