void PointCampGUI(CampMapPointController point) { GUILayout.BeginVertical("box"); GUILayout.Label("Camp"); point.MapPoint.namePoint = "Obóz"; GUILayout.Label("" + point.MapPoint.namePoint); GUILayout.Label("Camp id: " + point.id); GUILayout.EndVertical(); }
public void SelectedLocate() { switch (StaticValues.currentLocate.GetTypeLocate()) { case ForceTravel.TravelType.Camp: T_Selected.text = "Obóz"; B_Exit.interactable = true; break; case ForceTravel.TravelType.Village: T_Selected.text = "" + StaticValues.Cities[((VillageMapPointController)StaticValues.points[StaticValues.currentLocate.GetIDViillage()]).id].Name; B_Exit.interactable = true; break; default: T_Selected.text = "Brak"; B_Exit.interactable = false; break; } var regions = GetComponentInChildren <Regions>().regions; foreach (var region in regions) { var objs = region.GetComponentsInChildren <MapPointController>(); foreach (var obj in objs) { switch (obj.MapPoint.typePoint) { case PointType.Camp: CampMapPointController camp = obj as CampMapPointController; camp.Frame.SetActive(false); if (StaticValues.currentLocate.GetTypeLocate() == ForceTravel.TravelType.Camp) { if (((CampMapPointController)StaticValues.points[StaticValues.currentLocate.GetIDCamp()]).id == camp.id) { camp.Frame.SetActive(true); } } break; case PointType.Village: VillageMapPointController village = obj as VillageMapPointController; village.Frame.SetActive(false); if (StaticValues.currentLocate.GetTypeLocate() == ForceTravel.TravelType.Village) { if (((VillageMapPointController)StaticValues.points[StaticValues.currentLocate.GetIDViillage()]).id == village.id) { village.Frame.SetActive(true); } } break; } } } }