Exemplo n.º 1
0
 public void ReactToItemHover(SubwayStop stop)
 {
     if (audioSource != null)
     {
         audioSource.PlayOneShot(audioSource.clip);
     }
 }
Exemplo n.º 2
0
 public void ReactToItemHover(SubwayStop stop)
 {
     if (audioSource != null)
     {
         audioSource.PlayOneShot(audioSource.clip);
     }
     // TODO: move to the stop's relative position (or lerp to reduce motion sickness)
 }
Exemplo n.º 3
0
 public static void ReactToStationSelect(SubwayStopButton stopButton)
 {
     if (stopButton.stop == localSubway.stop || !stopButton.IsDiscovered())
     {
         return;
     }
     destination = stopButton.stop;
     CloseMapUI();
     localSubway.GetComponent <Animator>().SetTrigger("Depart");
 }
Exemplo n.º 4
0
 public static void ReactToStationSelect(SubwayStop stop)
 {
     if (stop == localSubway.stop)
     {
         return;
     }
     destination = stop;
     CloseMapUI();
     localSubway.GetComponent <Animator>().SetTrigger("Depart");
 }
Exemplo n.º 5
0
        public void FirstLineLatitude_Equals101_True()
        {
            // Arrange
            string expectedId = "40.889248";

            // Act
            SubwayStop stop = SubwayStopRepo.Get("101");

            // Assert
            Assert.IsNotNull(stop);
            Assert.AreEqual(expectedId, stop.Latitude);
        }
Exemplo n.º 6
0
        public void FirstLineId_Equals101_True()
        {
            // Arrange
            string expectedId = "101";

            // Act
            SubwayStop stop = SubwayStopRepo.Get("101");

            // Assert
            Assert.IsNotNull(stop);
            Assert.AreEqual(expectedId, stop.Id);
        }
Exemplo n.º 7
0
 public void PropagateCurrentStopInfo(SubwayStop localStop)
 {
     SubwayStopButton[] buttons = GetComponentsInChildren <SubwayStopButton>();
     foreach (SubwayStopButton b in buttons)
     {
         // reset from the last station
         b.GetComponent <Animator>().SetBool("ThisStop", false);
         b.GetComponent <Animator>().SetBool("Interactable", true);
         if (b.stop == localStop)
         {
             b.GetComponent <Animator>().SetBool("ThisStop", true);
         }
     }
 }
Exemplo n.º 8
0
 public static string GetStopScene(SubwayStop stop)
 {
     return(sm.stationMappings.Where(
                x => x.stop == stop
                ).First().sceneContainer.scene.SceneName);
 }