示例#1
0
    // Update is called once per frame
    void Update()
    {
        if (MultiStateBehaviour.IsBirdPlayingState())
        {
            pos         += speed * Time.deltaTime;
            slider.value = pos;


            if (pos > max && !visited)
            {
                GameController.GetInstance.BirdWon();
                visited = true;
            }
        }
    }
 public void GoTo(int scene)
 {
     TweenAnimations.MoveDown(menu, 20.0f, 6.0f);
     MultiStateBehaviour.NewGameClicked();
 }