Exemple #1
0
 public void SetStarsType(StarsType starsType)
 {
     StarsType = starsType;
     foreach (MapLevel mapLevel in GetMapLevels())
     {
         mapLevel.UpdateStarsType(starsType);
     }
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 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);
 }
Exemple #5
0
 public void UpdateStarsType(StarsType starsType) 
 {
     StarsHoster.gameObject.SetActive(starsType == StarsType.Separated);
     SolidStarsHoster.gameObject.SetActive(starsType == StarsType.Solid);
 }