示例#1
0
文件: LevelsMap.cs 项目: acosin/Jelly
 public void SetStarsType(StarsType starsType)
 {
     StarsType = starsType;
     foreach (MapLevel mapLevel in GetMapLevels())
     {
         mapLevel.UpdateStarsType(starsType);
     }
 }
示例#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();
        }
示例#3
0
 public void SetStarsType(StarsType starsType)
 {
     StarsType = starsType;
     foreach (MapLevel mapLevel in GetMapLevels())
         mapLevel.UpdateStarsType(starsType);
 }
示例#4
0
 public void UpdateStarsType(StarsType starsType)
 {
     StarsHoster.gameObject.SetActive(starsType == StarsType.Separated);
     SolidStarsHoster.gameObject.SetActive(starsType == StarsType.Solid);
 }
示例#5
0
 public void UpdateStarsType(StarsType starsType) 
 {
     StarsHoster.gameObject.SetActive(starsType == StarsType.Separated);
     SolidStarsHoster.gameObject.SetActive(starsType == StarsType.Solid);
 }