public void ReactToItemHover(SubwayStop stop) { if (audioSource != null) { audioSource.PlayOneShot(audioSource.clip); } }
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) }
public static void ReactToStationSelect(SubwayStopButton stopButton) { if (stopButton.stop == localSubway.stop || !stopButton.IsDiscovered()) { return; } destination = stopButton.stop; CloseMapUI(); localSubway.GetComponent <Animator>().SetTrigger("Depart"); }
public static void ReactToStationSelect(SubwayStop stop) { if (stop == localSubway.stop) { return; } destination = stop; CloseMapUI(); localSubway.GetComponent <Animator>().SetTrigger("Depart"); }
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); }
public void FirstLineId_Equals101_True() { // Arrange string expectedId = "101"; // Act SubwayStop stop = SubwayStopRepo.Get("101"); // Assert Assert.IsNotNull(stop); Assert.AreEqual(expectedId, stop.Id); }
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); } } }
public static string GetStopScene(SubwayStop stop) { return(sm.stationMappings.Where( x => x.stop == stop ).First().sceneContainer.scene.SceneName); }