예제 #1
0
    //public void GameOver()
    //{

    //}

    //public void JumpedOverFox()
    //{

    //}



    // Start is called before the first frame update
    void Start()
    {
        chordSender  = GetComponentInChildren <ChordSender>();
        foxManager   = GetComponent <FoxManager>();
        chickenDying = GetComponent <AudioSource>();
        camPosition  = Camera.main.transform.position;
        camRotation  = Camera.main.transform.rotation;
        screenShake  = Camera.main.GetComponent <ScreenShake>();
        foxManager.SetFoxSpeed(defaultFoxSpeed);
        foxWaitTime = defaultFoxWaitTime;
        lives       = initialnumberOfLives;
        GetScores();
        gameState = GameState.begin;
    }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     chordSender = GetComponentInChildren <ChordSender>();
 }