// Use this for initialization void Start() { audioSource.clip = countdownSound; detectFlap = GameObject.Find("PlayerBird").GetComponent <DetectFlap>(); birdRigidbody = GameObject.Find("PlayerBird").GetComponent <Rigidbody2D>(); BirdMovement.forwardSpeed = 0f; birdRigidbody.bodyType = RigidbodyType2D.Kinematic; }
private void Start() { Score = GameObject.Find("Score").GetComponent <Score>(); detectFlap = GameObject.Find("PlayerBird").GetComponent <DetectFlap>(); }