status=0情况

This commit is contained in:
CaiYanPeng 2021-07-29 21:15:26 +08:00
parent 3c6edc624b
commit 44c1b771f7
2 changed files with 61 additions and 5 deletions

View File

@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 9190192381015952294}
- component: {fileID: 3681587407936337891}
- component: {fileID: 8378942642156234469}
- component: {fileID: 2008074824227605266}
m_Layer: 5
m_Name: Btn1
m_TagString: Untagged
@ -59,7 +60,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: f7f6b9f4550b962489e4a4d6f3d718ec, type: 2}
m_Material: {fileID: 0}
m_Color: {r: 0.13725491, g: 0.13725491, b: 0.1764706, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
@ -119,6 +120,19 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &2008074824227605266
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1065252543919300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
m_Name:
m_EditorClassIdentifier:
radius: 10
--- !u!1 &71653441061169204
GameObject:
m_ObjectHideFlags: 0
@ -888,6 +902,7 @@ GameObject:
- component: {fileID: 7635687608030458564}
- component: {fileID: 3352324276148832688}
- component: {fileID: 2426211691037942670}
- component: {fileID: 230993553342707973}
m_Layer: 5
m_Name: Btn2
m_TagString: Untagged
@ -935,7 +950,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: f7f6b9f4550b962489e4a4d6f3d718ec, type: 2}
m_Material: {fileID: 0}
m_Color: {r: 0.13725491, g: 0.13725491, b: 0.1764706, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
@ -995,6 +1010,19 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &230993553342707973
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2363214934641726875}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
m_Name:
m_EditorClassIdentifier:
radius: 10
--- !u!1 &2514235273621485032
GameObject:
m_ObjectHideFlags: 0
@ -1701,6 +1729,7 @@ GameObject:
- component: {fileID: 260655509533004817}
- component: {fileID: 3437794669852223382}
- component: {fileID: 3355280096135825381}
- component: {fileID: 1192248873808637273}
m_Layer: 5
m_Name: Btn4
m_TagString: Untagged
@ -1748,7 +1777,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: f7f6b9f4550b962489e4a4d6f3d718ec, type: 2}
m_Material: {fileID: 0}
m_Color: {r: 0.13725491, g: 0.13725491, b: 0.1764706, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
@ -1808,6 +1837,19 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &1192248873808637273
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4851402532560718175}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
m_Name:
m_EditorClassIdentifier:
radius: 10
--- !u!1 &4875298439956012054
GameObject:
m_ObjectHideFlags: 0
@ -2071,6 +2113,7 @@ GameObject:
- component: {fileID: 666701024294653921}
- component: {fileID: 2696268366180236390}
- component: {fileID: 2616249139000974357}
- component: {fileID: 2653718919590398917}
m_Layer: 5
m_Name: Btn3
m_TagString: Untagged
@ -2118,7 +2161,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: f7f6b9f4550b962489e4a4d6f3d718ec, type: 2}
m_Material: {fileID: 0}
m_Color: {r: 0.13725491, g: 0.13725491, b: 0.1764706, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
@ -2178,6 +2221,19 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &2653718919590398917
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5299950768805647023}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
m_Name:
m_EditorClassIdentifier:
radius: 10
--- !u!1 &5636707158863814618
GameObject:
m_ObjectHideFlags: 0

View File

@ -147,7 +147,7 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
private void SetStatus(MapCompetition mapCompetition)
{
var status = transform.Find("Status");
if (mapCompetition.Status == 1)
if (mapCompetition.Status <= 1)
{
status.gameObject.SetActive(false);
}