Beispiel #1
0
    //When flag hits the ground, cutscene is played
    public void FlagCollided()
    {
        flag.GetComponent <BoxCollider2D>().enabled   = false;
        flag.GetComponent <Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezePositionY;

        timelineController.PlayCutscene();

        scoreManager.CountFinalScore();
        //Waiting for cutscene to playout before calling the next one
        timelineController.Invoke("PlayFireworks", 5.9f);
    }