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

        po.SetCountToOne();
    }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        if (determinePositionOfCamera.GetCount() == 0)
        {
            EnableComponents.MakeCanvasAppear(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.MakeCanvasAppear(MoveToThreeHalfCanvas);
            determinePositionOfCamera.IncrementCount();
        }

        else
        {
            EnableComponents.MakeCanvasAppear(ResetTourCanvas);
            player.transform.position = PositionFiveCanvas.transform.position;
        }
        DontDestroyOnLoad(determinePositionOfCamera);
    }
Esempio n. 5
0
 public void MoveToFourthCanvas()
 {
     iTween.MoveTo(player, PositionFourCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(HoloFitCanvas);
     EnableComponents.MakeCanvasDisappear(MoveToFour);
 }
Esempio n. 6
0
 public void MoveToThirdHalfCanvas()
 {
     iTween.MoveTo(player, CanvasThreeHalfPosition.transform.position, 1.5f);
     EnableComponents.MakeCanvasDisappear(MoveToThreeHalfCanvas);
     EnableComponents.MakeCanvasAppear(MoveToFour);
 }
Esempio n. 7
0
 public void MoveToSecondCanvas()
 {
     iTween.MoveTo(player, PositionTwoCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(HealthProblemCanas);
     EnableComponents.MakeCanvasDisappear(DisplayIntroCanvas);
 }
Esempio n. 8
0
 public void MoveToFirstCanvas()
 {
     iTween.MoveTo(player, PositionOneCanvas.transform.position, 1.5f);
     EnableComponents.MakeCanvasAppear(DisplayIntroCanvas);
     EnableComponents.MakeCanvasDisappear(StartTourCanvas);
 }
Esempio n. 9
0
 public void DisplayWhatThisIsAboutCanvas()
 {
     EnableComponents.MakeCanvasAppear(WhatThisIsAboutCanvas);
 }