예제 #1
0
 public void MoveToFifthCanvas()
 {
     if (!PlayVideo.IsVideoPlaying())
     {
         iTween.MoveTo(player, PositionFiveCanvas.transform.position, 1.5f);
         EnableComponents.MakeCanvasDisappear(HoloFitCanvas);
         EnableComponents.MakeCanvasAppear(PlayBasketballCanvas);
     }
 }
예제 #2
0
 public void MoveToThirdCanvas()
 {
     if (!DangerVideo.IsVideoPlaying())
     {
         iTween.MoveTo(player, PositionThreeCanvas.transform.position, 1.5f);
         EnableComponents.MakeCanvasDisappear(HealthProblemCanas);
         EnableComponents.MakeCanvasAppear(EnterGymCanvas);
     }
 }
예제 #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
    // Use this for initialization
    void Start()
    {
        if (determinePositionOfCamera.GetCount() == 0)
        {
            EnableComponents.MakeItemAppear(StartTourCanvas);
            player.transform.position = StartPosition.transform.position;
            determinePositionOfCamera.IncrementCount();
        }

        else if (determinePositionOfCamera.GetCount() == 1)
        {
            player.transform.position    = PositionThreeCanvas.transform.position;
            player.transform.eulerAngles = new Vector3(0, -180, 0);
            EnableComponents.MakeItemAppear(MoveToThreeHalfCanvas);
            determinePositionOfCamera.IncrementCount();
        }

        else
        {
            EnableComponents.MakeItemAppear(EndTourCanvas);
            player.transform.position = PositionFiveCanvas.transform.position;
        }
        DontDestroyOnLoad(determinePositionOfCamera);
    }
예제 #5
0
 public void MoveToFifthCanvas()
 {
     iTween.MoveTo(player, PositionFiveCanvas.transform.position, 1.5f);
     EnableComponents.MakeItemDisappear(HoloFitButtons);
     EnableComponents.MakeItemAppear(PlayBasketballCanvas);
 }
예제 #6
0
 public void MoveToFourthCanvas()
 {
     iTween.MoveTo(player, PositionFourCanvas.transform.position, 1.5f);
     EnableComponents.MakeItemAppear(HoloFitButtons);
     EnableComponents.MakeItemDisappear(MoveToFour);
 }
예제 #7
0
 public void MoveToThirdHalfCanvas()
 {
     iTween.MoveTo(player, CanvasThreeHalfPosition.transform.position, 1.5f);
     EnableComponents.MakeItemDisappear(MoveToThreeHalfCanvas);
     EnableComponents.MakeItemAppear(MoveToFour);
 }
예제 #8
0
 public void MoveToThirdCanvas()
 {
     iTween.MoveTo(player, PositionThreeCanvas.transform.position, 1.5f);
     EnableComponents.MakeItemDisappear(AthleteInfoButtons);
     EnableComponents.MakeItemAppear(EnterGymCanvas);
 }
예제 #9
0
 public void MoveToSecondCanvas()
 {
     iTween.MoveTo(player, PositionTwoCanvas.transform.position, 1.5f);
     EnableComponents.MakeItemAppear(AthleteInfoButtons);
     EnableComponents.MakeItemDisappear(DisplayIntroCanvas);
 }
예제 #10
0
 public void MoveToFirstCanvas()
 {
     iTween.MoveTo(player, PositionOneCanvas.transform.position, 1.5f);
     EnableComponents.MakeItemAppear(DisplayIntroCanvas);
     EnableComponents.MakeItemDisappear(StartTourCanvas);
 }
예제 #11
0
 public void DisplayAthleteCanvas()
 {
     EnableComponents.MakeItemAppear(AthleteInfoCanvas);
 }
예제 #12
0
 public void DisplayWhatThisIsAboutCanvas()
 {
     EnableComponents.MakeItemAppear(WhatThisIsAboutCanvas);
 }
예제 #13
0
 public void LoadGymScene()
 {
     EnableComponents.MakeItemDisappear(EnterGymCanvas);
     SceneManager.LoadScene("WorkoutGYM");
 }
예제 #14
0
 public void MoveToEnd()
 {
     EnableComponents.MakeItemDisappear(PlayBasketballCanvas);
     iTween.MoveTo(player, EndPosition.transform.position, 1.5f);
 }
예제 #15
0
 public void MoveToSecondCanvas()
 {
     iTween.MoveTo(player, PositionTwoCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(HealthProblemCanas);
     EnableComponents.MakeCanvasDisappear(DisplayIntroCanvas);
 }