// Use this for initialization void Awake() { timerCount = 0; instance = this; //StartCoroutine(TimeCount()); BulletHellPlayer = FindObjectOfType <BH_Player>(); CasseBriquePlayer = FindObjectOfType <CB_Bar>(); cameras = FindObjectsOfType <Camera>(); StartCoroutine(MalusVisuels()); }
// Use this for initialization void Start() { player = GameObject.FindObjectOfType <BH_Player>(); dir = player.transform.position - this.transform.position; }