Commit bd5ac3de authored by 赤子奈落's avatar 赤子奈落

new place select fx

parent a3637f3d
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -84,7 +84,7 @@ MeshRenderer: ...@@ -84,7 +84,7 @@ MeshRenderer:
m_AdditionalVertexStreams: {fileID: 0} m_AdditionalVertexStreams: {fileID: 0}
--- !u!95 &9534944 --- !u!95 &9534944
Animator: Animator:
serializedVersion: 3 serializedVersion: 5
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
...@@ -97,10 +97,12 @@ Animator: ...@@ -97,10 +97,12 @@ Animator:
m_UpdateMode: 0 m_UpdateMode: 0
m_ApplyRootMotion: 0 m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0 m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage: m_WarningMessage:
m_HasTransformHierarchy: 1 m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1 m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0 m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &114714 --- !u!1 &114714
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -156,7 +158,6 @@ MonoBehaviour: ...@@ -156,7 +158,6 @@ MonoBehaviour:
selected: 0 selected: 0
quad: {fileID: 461562} quad: {fileID: 461562}
selectedGO: {fileID: 1701745939035701701} selectedGO: {fileID: 1701745939035701701}
selectableGO: {fileID: 8478297191993939460}
--- !u!1 &140398 --- !u!1 &140398
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -273,7 +274,7 @@ MeshRenderer: ...@@ -273,7 +274,7 @@ MeshRenderer:
m_AdditionalVertexStreams: {fileID: 0} m_AdditionalVertexStreams: {fileID: 0}
--- !u!95 &9522620 --- !u!95 &9522620
Animator: Animator:
serializedVersion: 3 serializedVersion: 5
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
...@@ -286,10 +287,12 @@ Animator: ...@@ -286,10 +287,12 @@ Animator:
m_UpdateMode: 0 m_UpdateMode: 0
m_ApplyRootMotion: 0 m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0 m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage: m_WarningMessage:
m_HasTransformHierarchy: 1 m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1 m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0 m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &174798 --- !u!1 &174798
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -374,7 +377,7 @@ MeshRenderer: ...@@ -374,7 +377,7 @@ MeshRenderer:
m_AdditionalVertexStreams: {fileID: 0} m_AdditionalVertexStreams: {fileID: 0}
--- !u!95 &9591042 --- !u!95 &9591042
Animator: Animator:
serializedVersion: 3 serializedVersion: 5
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
...@@ -387,10 +390,12 @@ Animator: ...@@ -387,10 +390,12 @@ Animator:
m_UpdateMode: 0 m_UpdateMode: 0
m_ApplyRootMotion: 0 m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0 m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage: m_WarningMessage:
m_HasTransformHierarchy: 1 m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1 m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0 m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &179140 --- !u!1 &179140
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -685,7 +690,7 @@ MeshRenderer: ...@@ -685,7 +690,7 @@ MeshRenderer:
m_AdditionalVertexStreams: {fileID: 0} m_AdditionalVertexStreams: {fileID: 0}
--- !u!95 &9576710 --- !u!95 &9576710
Animator: Animator:
serializedVersion: 3 serializedVersion: 5
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
...@@ -698,10 +703,12 @@ Animator: ...@@ -698,10 +703,12 @@ Animator:
m_UpdateMode: 0 m_UpdateMode: 0
m_ApplyRootMotion: 0 m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0 m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage: m_WarningMessage:
m_HasTransformHierarchy: 1 m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1 m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0 m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &167745486883531719 --- !u!1 &167745486883531719
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -19965,7 +19972,7 @@ GameObject: ...@@ -19965,7 +19972,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!4 &1760269790707801863 --- !u!4 &1760269790707801863
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
......
...@@ -9,12 +9,27 @@ public class placeSelector : MonoBehaviour { ...@@ -9,12 +9,27 @@ public class placeSelector : MonoBehaviour {
public Transform quad; public Transform quad;
public GameObject selectedGO; public GameObject selectedGO;
public GameObject selectableGO; GameObject selectableGO;
// Use this for initialization // Use this for initialization
void Start () { void Start ()
{
} if(transform.position.z == -9.48 || transform.position.z == 9.51)//主怪兽区
selectableGO = ABLoader.LoadAB("effects/hitghlight/fxp_hl_select/fxp_hl_select_mst_001");
else if(transform.position.z == -18 || transform.position.z == 18)//魔陷区
{
selectableGO = ABLoader.LoadAB("effects/hitghlight/fxp_hl_select/fxp_hl_select_trpmgc_001");
}
else if (transform.position.z == -10 || transform.position.z == 10)//场地
selectableGO = ABLoader.LoadAB("effects/hitghlight/fxp_hl_select/fxp_hl_select_trpmgc_001");
else//额外怪兽区
selectableGO = ABLoader.LoadAB("effects/hitghlight/fxp_hl_select/fxp_hl_select_mst_001");
var main = selectableGO.GetComponent<ParticleSystem>().main;
main.playOnAwake = true;
selectableGO.transform.parent = transform;
selectableGO.transform.localPosition = Vector3.zero;
selectableGO.SetActive(false);
}
// Update is called once per frame // Update is called once per frame
void Update () { void Update () {
...@@ -42,7 +57,6 @@ public class placeSelector : MonoBehaviour { ...@@ -42,7 +57,6 @@ public class placeSelector : MonoBehaviour {
if (selectableGO!=null) if (selectableGO!=null)
{ {
selectableGO.SetActive(!selected); selectableGO.SetActive(!selected);
} }
if (selectedGO != null) if (selectedGO != null)
{ {
......
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