using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance { get; private set; }
public Bird[] birdList;
private int index = -1;
private void Awake()
{
Instance = this;
}
// Start is called before the first frame update
void Start()
{
birdList = FindObjectsByType<Bird>(FindObjectsSortMode.None);
LoadNextBird();
}
// Update is called once per frame
void Update()
{
}
public void LoadNextBird()
{
index++;
birdList[index].GoStage(Slingshot.Instance.getCenterPositon());
}
}