public IEnumerator EnterStationDetail_Tut_S3() { Debug.Log("LETS SEE THE TRANSITION????"); Animator myAnim = MapCar.GetComponent <Animator>(); myAnim.SetTrigger("idle"); myAnim = matchButton.GetComponent <Animator>(); myAnim.SetTrigger("blingbling"); HideHint(); yield return(null); }
public IEnumerator EnterMap_Tut_S2() { isInstruction = true; Animator myAnim = MapInSubway.GetComponent <Animator>(); myAnim.SetTrigger("idle"); FinalCameraController.enableScroll = true; GoBackButton.SetActive(false); Hide(MapCar.GetComponent <CanvasGroup>()); MapCar_Tut_S2.SetActive(true); MapTutorialBubble.SetActive(true); yield return(new WaitForSeconds(2f)); ShowHint(); MapTutorialBubble.SetActive(false); }
void Start() { Resources.UnloadUnusedAssets(); FinalCameraController = GameObject.Find("Main Camera").GetComponent <FinalCameraController>(); SubwayMovement = GameObject.Find("---StationController").GetComponent <SubwayMovement>(); RatingSystem = GameObject.Find("FloatingUI").GetComponent <RatingSystem>(); FishBossNotification = GameObject.Find("FishBossUI").GetComponent <FishBossNotification>(); PathFollower = MapCar.GetComponent <PathFollower>(); carCG = MapCar.GetComponent <CanvasGroup>(); int skipInstruction = PlayerPrefs.GetInt("skip", -1); if (skipInstruction == 1) { skip = true; } GameObject.Find("Main Camera").transform.position = new Vector3(0, 0, -20); if (!skip) { } else { //FinalCameraController.myCameraState = FinalCameraController.CameraState.Subway; //ShowRatingSys(false); //CloseInstruction(); EndMapTutorial(); } comicList.Add(new List <Sprite>()); comicList[0].AddRange(comics1); comicList.Add(new List <Sprite>()); comicList[1].AddRange(comics2); }
public void UpdateStage() { Debug.Log("let's see "); Hide(transitComic.GetComponent <CanvasGroup>()); HideHint(); MapCar_Tut_S2.SetActive(false); Show(MapCar.GetComponent <CanvasGroup>()); isInstruction = false; stageTransiting = false; comicClick = 0; upgradeReadyOrNot = false; stageTransiting = false; SubwayMovement.pauseBeforeMove = false; stage++; //ShowRatingSys(true); return; }
public override Task <MapCar> transferToMap(ListCar request, ServerCallContext context) { //数量 Console.WriteLine("数量: " + request.Car.Count); ////获取指定位置的Car if (request.Car.Count > 2) { var car = request.Car[1]; Console.WriteLine(string.Format("id: {0},name: {1},color: {2}", car.Id, car.Name, car.Color)); } //获取list var list = request.Car; //新建返回的map Jihe.MapCar map = new MapCar(); //转换成map,以id为key,car为value foreach (Car car in list) { map.Cars.Add(car.Id, car); } //完成 return(Task.FromResult(map)); }