示例#1
0
 public void MoveToThirdCanvas()
 {
     if (!DangerVideo.IsVideoPlaying())
     {
         iTween.MoveTo(player, PositionThreeCanvas.transform.position, 1.5f);
         EnableComponents.MakeCanvasDisappear(HealthProblemCanas);
         EnableComponents.MakeCanvasAppear(EnterGymCanvas);
     }
 }
示例#2
0
 public void MoveToFifthCanvas()
 {
     if (!PlayVideo.IsVideoPlaying())
     {
         iTween.MoveTo(player, PositionFiveCanvas.transform.position, 1.5f);
         EnableComponents.MakeCanvasDisappear(HoloFitCanvas);
         EnableComponents.MakeCanvasAppear(PlayBasketballCanvas);
     }
 }
示例#3
0
    public void ResetTour()
    {
        EnableComponents.MakeCanvasAppear(StartTourCanvas);
        player.transform.position = StartPosition.transform.position;
        EnableComponents.MakeCanvasDisappear(ResetTourCanvas);
        PersistantObject po = FindObjectOfType <PersistantObject> ();

        po.SetCountToOne();
    }
示例#4
0
 public void MoveToFourthCanvas()
 {
     iTween.MoveTo(player, PositionFourCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(HoloFitCanvas);
     EnableComponents.MakeCanvasDisappear(MoveToFour);
 }
示例#5
0
 public void MoveToThirdHalfCanvas()
 {
     iTween.MoveTo(player, CanvasThreeHalfPosition.transform.position, 1.5f);
     EnableComponents.MakeCanvasDisappear(MoveToThreeHalfCanvas);
     EnableComponents.MakeCanvasAppear(MoveToFour);
 }
示例#6
0
 public void MoveToSecondCanvas()
 {
     iTween.MoveTo(player, PositionTwoCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(HealthProblemCanas);
     EnableComponents.MakeCanvasDisappear(DisplayIntroCanvas);
 }
示例#7
0
 public void MoveToFirstCanvas()
 {
     iTween.MoveTo(player, PositionOneCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(DisplayIntroCanvas);
     EnableComponents.MakeCanvasDisappear(StartTourCanvas);
 }
示例#8
0
 public void LoadGymScene()
 {
     EnableComponents.MakeCanvasDisappear(EnterGymCanvas);
     SceneManager.LoadScene("WorkoutGYM");
 }
示例#9
0
 public void MoveToEnd()
 {
     EnableComponents.MakeCanvasDisappear(PlayBasketballCanvas);
     iTween.MoveTo(player, EndPosition.transform.position, 1.5f);
 }