public TestScene2(GameProgressTracker progressTracker)
        {
            InitializeComponent();
            _progressTracker    = progressTracker;
            Cougher.Visibility  = Visibility.Collapsed;
            TestText.Visibility = Visibility.Visible;
            TestText.Foreground = Brushes.WhiteSmoke;
            string dialogue = "\"Unspoken dialogue of a differnet " +
                              "characeterer that is a the face on the screeeeen\"";
            string narration = "\n\n Some other text and stuff omg." +
                               " Descrption of this new character person and shit wowwww.";
            List <string> sceneText = new List <string>();

            sceneText.Add(dialogue);
            sceneText.Add(narration);

            NextLabel.Visibility = Visibility.Collapsed;
            NextLabel.Foreground = Brushes.WhiteSmoke;
            List <Label> labels = new List <Label>();

            labels.Add(NextLabel);

            TextWriter tr = new TextWriter(sceneText, TestText, labels);

            tr.StartWriting();

            PlayMusic(@"C:\Users\Jack\source\repos\WPFPrototypeReverie\lowfi-loop.wav");
            PlaySFX(@"C:\Users\Jack\source\repos\WPFPrototypeReverie\AHEM.wav");
        }
Exemplo n.º 2
0
        public TestScene(GameProgressTracker progressTracker)
        {
            InitializeComponent();
            _progressTracker    = progressTracker;
            TestText.Visibility = Visibility.Collapsed;

            TestText.Visibility = Visibility.Visible;
            TestText.Foreground = Brushes.WhiteSmoke;
            string        dialogue  = "\"Well this is a piece of voice acting wow, look at the voice and the acting, wow\"";
            string        narration = "\n\n Said the disembodied voice of a strange person writing code.";
            List <string> sceneText = new List <string>();

            sceneText.Add(dialogue);
            sceneText.Add(narration);

            NextLabel.Visibility = Visibility.Collapsed;
            NextLabel.Foreground = Brushes.WhiteSmoke;
            List <Label> labels = new List <Label>();

            labels.Add(NextLabel);

            TextWriter tr = new TextWriter(sceneText, TestText, labels);

            tr.StartWriting();

            SoundPlayer player = new SoundPlayer(@"C:\Users\Jack\source\repos\WPFPrototypeReverie\wowActingWow.wav");

            player.Load();
            player.Play();
        }
Exemplo n.º 3
0
    private void Start()
    {
        GameObject m = GameObject.FindGameObjectWithTag("Manager");

        if (m != null)
        {
            manager = m.GetComponent <GameProgressTracker>();
        }
    }
Exemplo n.º 4
0
    private void Start()
    {
        GameObject m = GameObject.FindGameObjectWithTag("Manager");

        if (m != null)
        {
            manager = m.GetComponent <GameProgressTracker>();
        }
        animator = GetComponent <Animator>();
        m_sprite = GetComponent <SpriteRenderer>();
    }
        public MainMenu()
        {
            _progressTracker = new GameProgressTracker();
            InitializeComponent();
            ContinueButton.Visibility = Visibility.Collapsed;
            ShowsNavigationUI         = false;
            List <string> scenes = _progressTracker.ViewedScenes();

            if (scenes.Contains("menu"))
            {
                ContinueButton.Visibility = Visibility.Visible;
            }
        }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     gameProgressTracker = levelScripts.GetComponent <GameProgressTracker>();
     gameController      = GameController.GetComponent <GameControllerVR>();
     if (loadingSceneIndex != 0)
     {
         loadingSceneString = loadingSceneString + loadingSceneIndex.ToString();
     }
     else
     {
         loadingSceneString = "MainMenu";
     }
     //在这里开启一个异步任务,
     //进入loadScene方法。
     StartCoroutine(loadScene8());
 }
Exemplo n.º 7
0
    private void Start()
    {
        startPosition = transform.position;

        GameObject gm = GameObject.FindGameObjectWithTag("Manager");

        gameManager = gm != null?gm.GetComponent <GameProgressTracker>() : null;

        if (gameManager != null)
        {
            if (gameManager.getTrophies()[id].color == Color.white)
            {
                gameObject.active = false;
                return;
            }
        }
    }
Exemplo n.º 8
0
    private void Start()
    {
        idleTimer = new QuickTimer();

        m_nav = gameObject.GetComponent <NavMeshAgent2D>();
        goals = new List <GameObject>();
        foreach (GameObject g in GameObject.FindGameObjectsWithTag("Treasure"))
        {
            goals.Add(g);
            print(g.name);
        }
        ChangePlayerState(PlayerStates.IDLE);
        m_animator = GetComponent <Animator>();

        coinLocations = new List <Transform>();

        GameObject gm = GameObject.FindGameObjectWithTag("Manager");

        gameManager = gm != null?gm.GetComponent <GameProgressTracker>() : null;

        if (gameManager != null)
        {
            if (gameManager.canReturn)
            {
                GameObject pos = GameObject.Find("ReturnPosition");
                m_nav.Warp(pos.transform.position);
                GameObject g = GameObject.Find("Exit");
                goals.Add(g);
                g.GetComponent <doorController>().enabled = true;
            }
        }

        a_source = gameObject.GetComponent <AudioSource>();

        this.originalSpeed = m_nav.speed;
    }