// Start is called before the first frame update void Start() { ResetDirection(); duckCollider = GetComponent <Collider2D>(); spriteRenderer = GetComponent <SpriteRenderer>(); duckSpawner = FindObjectOfType <DuckSpawnerScript>(); }
// Start is called before the first frame update void Start() { pointsScript = FindObjectOfType <poinitScript>(); duckSpawnerScript = FindObjectOfType <DuckSpawnerScript>(); bullets = 3; audioSource = GetComponent <AudioSource>(); ; //this.GetComponent<AudioSource>().clip = laugh; }
// Start is called before the first frame update void Start() { duckSpawnerScript = FindObjectOfType <DuckSpawnerScript>(); }