public void SetStarsType(StarsType starsType) { StarsType = starsType; foreach (MapLevel mapLevel in GetMapLevels()) { mapLevel.UpdateStarsType(starsType); } }
private void DrawEnableState() { GUILayout.BeginVertical("Box"); GUILayout.Label("Stars enabled:"); StarsType starsType = (StarsType)EditorGUILayout.EnumPopup("Stars type", _levelsMap.StarsType); if (starsType != _levelsMap.StarsType) { _levelsMap.SetStarsType(starsType); } GUILayout.EndVertical(); }
public void SetStarsType(StarsType starsType) { StarsType = starsType; foreach (MapLevel mapLevel in GetMapLevels()) mapLevel.UpdateStarsType(starsType); }
public void UpdateStarsType(StarsType starsType) { StarsHoster.gameObject.SetActive(starsType == StarsType.Separated); SolidStarsHoster.gameObject.SetActive(starsType == StarsType.Solid); }