Commit bb4c9053 authored by wanqing's avatar wanqing

胜利后的星星显示优化

parent 271208fc
...@@ -38,7 +38,7 @@ RenderSettings: ...@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.37311992, g: 0.38074034, b: 0.35872713, a: 1} m_IndirectSpecularColor: {r: 0.37311926, g: 0.38073996, b: 0.35872698, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &4 --- !u!157 &4
LightmapSettings: LightmapSettings:
...@@ -365,10 +365,6 @@ PrefabInstance: ...@@ -365,10 +365,6 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: 767122296, guid: 919382978f5e2684ba83e6daf6491458, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6064464677632144689, guid: 919382978f5e2684ba83e6daf6491458, - target: {fileID: 6064464677632144689, guid: 919382978f5e2684ba83e6daf6491458,
type: 3} type: 3}
propertyPath: m_Name propertyPath: m_Name
...@@ -479,11 +475,6 @@ PrefabInstance: ...@@ -479,11 +475,6 @@ PrefabInstance:
propertyPath: m_Pivot.y propertyPath: m_Pivot.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6064464677660112694, guid: 919382978f5e2684ba83e6daf6491458,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 919382978f5e2684ba83e6daf6491458, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 919382978f5e2684ba83e6daf6491458, type: 3}
--- !u!114 &2163652508018123187 stripped --- !u!114 &2163652508018123187 stripped
......
...@@ -38,6 +38,8 @@ public class BattleUI : MonoBehaviour ...@@ -38,6 +38,8 @@ public class BattleUI : MonoBehaviour
public GameObject[] m_boomUIS;//爆炸Ui public GameObject[] m_boomUIS;//爆炸Ui
public Button m_boomBtn;//炸弹按钮 public Button m_boomBtn;//炸弹按钮
public Transform m_starParent;//星级 public Transform m_starParent;//星级
public Sprite m_fullStarSprite;//满星星
public Sprite m_emptyStarSprite;//空星星
public Action onStartBtn; public Action onStartBtn;
public Action onPosUpBtn; public Action onPosUpBtn;
public Action onPosDownBtn; public Action onPosDownBtn;
...@@ -189,7 +191,14 @@ public class BattleUI : MonoBehaviour ...@@ -189,7 +191,14 @@ public class BattleUI : MonoBehaviour
int varCurStar = BattleCtrl.instance.levelManager.curLevel.star; int varCurStar = BattleCtrl.instance.levelManager.curLevel.star;
for (int i = 0; i < m_starParent.childCount; i++) for (int i = 0; i < m_starParent.childCount; i++)
{ {
m_starParent.GetChild(i).gameObject.SetActive(i < varCurStar); if(i < varCurStar)
{
m_starParent.GetChild(i).GetComponent<Image>().sprite = m_fullStarSprite;
}
else
{
m_starParent.GetChild(i).GetComponent<Image>().sprite = m_emptyStarSprite;
}
} }
//m_gameBestTime.text = string.Format("{0:d2}:{1:d2}", varCurTime / 60, varCurTime % 60); //m_gameBestTime.text = string.Format("{0:d2}:{1:d2}", varCurTime / 60, varCurTime % 60);
//string varKey = BattleCtrl.instance.levelManager.CurLevelIndex.ToString(); //string varKey = BattleCtrl.instance.levelManager.CurLevelIndex.ToString();
......
...@@ -1629,7 +1629,7 @@ GameObject: ...@@ -1629,7 +1629,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &792154236058072383 --- !u!224 &792154236058072383
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -2597,7 +2597,7 @@ GameObject: ...@@ -2597,7 +2597,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 0 m_IsActive: 1
--- !u!224 &2347244091006803266 --- !u!224 &2347244091006803266
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -2827,7 +2827,7 @@ GameObject: ...@@ -2827,7 +2827,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 0 m_IsActive: 1
--- !u!224 &2347244091188669037 --- !u!224 &2347244091188669037
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -2901,7 +2901,7 @@ GameObject: ...@@ -2901,7 +2901,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 0 m_IsActive: 1
--- !u!224 &2347244091990415757 --- !u!224 &2347244091990415757
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -7778,6 +7778,8 @@ MonoBehaviour: ...@@ -7778,6 +7778,8 @@ MonoBehaviour:
- {fileID: 4698874706327749044} - {fileID: 4698874706327749044}
m_boomBtn: {fileID: 3314642096669198153} m_boomBtn: {fileID: 3314642096669198153}
m_starParent: {fileID: 7185521293347283414} m_starParent: {fileID: 7185521293347283414}
m_fullStarSprite: {fileID: 21300000, guid: 97c8f922c3e6319499aa73341532c22d, type: 3}
m_emptyStarSprite: {fileID: 21300000, guid: 0a396cfe59c396140ba692545106b732, type: 3}
--- !u!114 &1995691973 --- !u!114 &1995691973
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -8800,7 +8802,7 @@ RectTransform: ...@@ -8800,7 +8802,7 @@ RectTransform:
m_GameObject: {fileID: 6161917654799452979} m_GameObject: {fileID: 6161917654799452979}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.5, y: 0.5, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 2347244091006803266} - {fileID: 2347244091006803266}
- {fileID: 2347244091188669037} - {fileID: 2347244091188669037}
...@@ -8810,7 +8812,7 @@ RectTransform: ...@@ -8810,7 +8812,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -194.61} m_AnchoredPosition: {x: 0, y: -150}
m_SizeDelta: {x: 450, y: 150} m_SizeDelta: {x: 450, y: 150}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &9082036910097838738 --- !u!114 &9082036910097838738
......
...@@ -9438,7 +9438,7 @@ MonoBehaviour: ...@@ -9438,7 +9438,7 @@ MonoBehaviour:
minimumSize: 0 minimumSize: 0
percentage: 0 percentage: 0
seed: 0 seed: 0
clusterize: 1 clusterize: 0
demolishable: 1 demolishable: 1
collapse: collapse:
type: 1 type: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment