예제 #1
0
    private void Start()
    {
        uiControl = FindObjectOfType <UIController>();

        for (int i = 0; i < Birds.Count; i++)
        {
            Birds[i].OnBirdDestroyed += ChangeBird;
            Birds[i].OnBirdShot      += AssignTrail;
        }

        for (int i = 0; i < Enemies.Count; i++)
        {
            Enemies[i].OnEnemyDestroyed += CheckGameEnd;
        }

        TapCollider.enabled = false;

        SlingShooter.InitiateBird(Birds[0]);
        _shotBird = Birds[0];

        AudioManager.PlaySound(AudioManager.Sound.levelStart);
        AudioManager.PlayMusicLoop(AudioManager.Sound.ambient1);    // Plays the ambient sounds on levels

        SetPause(false);
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        BirdCheck();
        EnemyCheck();

        TapCollider.enabled = false;
        SlingShooter.InitiateBird(Birds[0]);
        _shotBird = Birds[0];
    }
    void Start()
    {
        for (int i = 0; i < birds.Count; i++)
        {
            birds[i].OnBirdShot += AssignTrail;
        }

        birdCount = birds.Count;
        slingShooter.InitiateBird(birds[0]);
        tapArea.enabled = false;
    }
    void Start()
    {
        for (int i = 0; i < birds.Count; i++)
        {
            birds[i].onBirdDestroyed += ChangeBird;
            birds[i].onBirdShoot += AssignTrail;
        }
        for (int i = 0; i < enemies.Count; i++)
            enemies[i].onEnemyDestroyed += CheckGameEnd;

        slingShooter.InitiateBird(birds[0]);
        _shotBird = birds[0];
        tapCollider.enabled = false;
    }
예제 #5
0
 void Start()
 {
     for (int i = 0; i < Birds.Count; i++)
     {
         Birds[i].OnBirdDestroyed += ChangeBird;
         Birds[i].OnBirdShot      += AssignTrail;
     }
     for (int i = 0; i < Enemies.Count; i++)
     {
         Enemies[i].OnEnemyDestroyed += CheckGameEnd;
     }
     TapCollider.enabled = false;
     SlingShooter.InitiateBird(Birds[0]);
     _shotBird = Birds[0];
 }
예제 #6
0
    void Start()
    {
        foreach (var bird in birds)
        {
            bird.OnBirdDestroyed += ChangeBird;
            bird.OnBirdShoot     += AssignTrail;
        }

        foreach (var enemy in enemies)
        {
            enemy.OnEnemyDestroyed += CheckGameEnd;
        }

        tapCollider.enabled = false;
        slingShot.InitiateBird(birds[0]);
        _shotBird = birds[0];
    }
예제 #7
0
 void Start()
 {
     // for(int i = 0; i < Birds.Count; i++)
     // {
     //     Birds[i].OnBirdDestroyed += ChangeBird;
     // }
     SlingShooter.InitiateBird(Birds[0]);
 }
예제 #8
0
    // Start is called before the first frame update
    void Start()
    {
        for (int i = 0; i < Birds.Count; i++)
        {
            Birds[i].OnBirdDestroyed += ChangeBird;
            Birds[i].OnBirdShot      += AssignTrail;
        }

        for (int i = 0; i < Enemies.Count; i++)
        {
            Enemies[i].OnEnemyDestroyed += CheckGameEnd;
        }

        TapCollider.enabled = false;
        SlingShooter.InitiateBird(Birds[0]);
        shotBird  = Birds[0];
        uiControl = GameObject.Find("Canvas").GetComponent <UIController>();
    }
    void Start()
    {
        uiScript = FindObjectOfType <UIControllerScript>();
        for (int i = 0; i < Birds.Count; i++)
        {
            Birds[i].OnBirdDestroyed += ChangeBird;
            Birds[i].OnBirdShot      += AssignTrail;
        }

        for (int i = 0; i < Enemies.Count; i++)
        {
            Enemies[i].OnEnemyDestroyed += CheckGameEnd;
        }

        TapCollider.enabled = false;
        SlingShooter.InitiateBird(Birds[0]);
        _shotBird = Birds[0];
    }
예제 #10
0
    void Start()
    {
        currentActiveScene = SceneManager.GetActiveScene();

        for (int i = 0; i < birds.Count; i++)
        {
            birds[i].OnBirdDestroyed += ChangeBird;
            birds[i].OnBirdShot      += AssignTrail;
        }

        for (int i = 0; i < enemies.Count; i++)
        {
            enemies[i].OnEnemyDestroyed += CheckGameEnd;
        }

        tapCollider.enabled = false;
        slingShooter.InitiateBird(birds[0]);
        shotBird = birds[0];
    }
예제 #11
0
    private void Start()
    {
        UIControl = UICanvas.GetComponent <UIController>();

        for (int i = 0; i < Birds.Count; i++)
        {
            Birds[i].OnBirdDestroyed += ChangeBird;
            Birds[i].OnBirdShot      += AssignTrail;
        }

        for (int i = 0; i < Enemies.Count; i++)
        {
            Enemies[i].OnEnemyDestroyed += CheckGameEnd;
        }

        tapCollider.enabled = false;
        slingShooter.InitiateBird(Birds[0]);
        _shotBird = Birds[0];
    }
예제 #12
0
    private void Start()
    {
        gameManager     = GameManager.Instance;
        trailController = TrailController.Instance;

        foreach (var bird in birds)
        {
            bird.onBirdDestroyed += ChangeBird;
            bird.onBirdShot      += AssignTrail;
        }

        foreach (var enemy in enemies)
        {
            enemy.onEnemyDestroyed += CheckGameEnd;
        }

        tapCollider.enabled = false;
        slingShooter.InitiateBird(birds[0]);
        shotBird = birds[0];
    }