public override void ShowOne(ICtr ctr) { foreach (var item in ctrs) { if (item == ctr) { ctr.ShowAll(); } else { item.HideAll(); } } }
public override void ShowOne(ICtr ctr) { for (int i = 0; i < ctrs.Count; i++) { if (i == ctrs.IndexOf(ctr)) { ctrs[i].ShowAll(); } else { ctrs[i].HideAll(); } } }
public virtual void HideOne(ICtr ctr) { }
public virtual void ShowOne(ICtr ctr) { }
IEnumerator MoveToTarget(List <RotueNode> rotueNodes, float timeEachSetp, int id, ICtr ctr) { // Debug.Log(timeEachSetp); TargetID = id; //yield return new WaitForSeconds(timeEachSetp); // SoundMangager.instance.GoThrough(); // CanvasMangager.instance.HideCurretTitle(); // Debug.Log(rotueNodes.Count+ "rotueNodes 数量"); // BottomBarCtr.instance.UpdateBottomBar(id + 1, ReadJson.NodeList.Count); for (int i = 0; i < rotueNodes.Count; i++) { if (i == rotueNodes.Count - 1)//going in { ctr.hideMainPicDe(); Debug.Log(id); ctr.ShowDescriptionDe(id); //Debug.Log(id); yield return(new WaitForSeconds(.5f)); // SoundMangager.instance.GoThrough(); MoveTo(rotueNodes[i].pos, timeEachSetp, () => updatePerviousID(id)); RotateTo(rotueNodes[i].rotationAngle, timeEachSetp); //CanvasMangager.instance.UpdateTitle(titleNum, CanvasMangager.instance.MainTitle);//show title } else { ctr.showMainPicDe(); MoveTo(rotueNodes[i].pos, timeEachSetp, () => updatePerviousID(id)); RotateTo(rotueNodes[i].rotationAngle, timeEachSetp); } yield return(new WaitForSeconds(timeEachSetp)); } }
private void goToTheNode(List <RotueNode> rotueNodes, float timeEachSetp, int id, ICtr ctr) { TargetID = id; int i = rotueNodes.Count - 1; ctr.showMainPicDe(); MoveTo(rotueNodes[i].pos, timeEachSetp, () => updatePerviousID(id)); RotateTo(rotueNodes[i].rotationAngle, timeEachSetp); ctr.hideMainPicDe(); ctr.ShowDescriptionDe(id); }
public void GoDirectly(int ID, Dictionary <int, GameObject> ID_Node_keyValuePairs, ICtr ctr, float offset = 0) { BottomBarCtr.instance.updateBar(ID, (float)ID_Node_keyValuePairs.Count); cameraMove(); LeanTween.cancel(this.gameObject); goToTheNode(getRotue(ID, ID_Node_keyValuePairs, offset), 1f, ID, ctr); }