示例#1
0
    // 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;
    }
示例#2
0
 private void Start()
 {
     Score      = GameObject.Find("Score").GetComponent <Score>();
     detectFlap = GameObject.Find("PlayerBird").GetComponent <DetectFlap>();
 }