|
@@ -8,7 +8,7 @@ public class WaterRangeCtrlTool : MonoBehaviour
|
|
|
public static WaterRangeCtrlTool _Instance;
|
|
|
public GameObject[] FxObjects;
|
|
|
public Material waterRangeMat;
|
|
|
-
|
|
|
+ public Transform hemian;
|
|
|
public AnimationCurve waterCurveSZ;
|
|
|
public AnimationCurve waterCurveVZ;
|
|
|
|
|
@@ -31,7 +31,7 @@ public class WaterRangeCtrlTool : MonoBehaviour
|
|
|
FxObjects[i].SetActive(true);
|
|
|
}
|
|
|
waterRangeMat = this.transform.Find("NeiHe_FenQu").GetComponent<MeshRenderer>().material;
|
|
|
-
|
|
|
+ hemian = this.transform.Find("HeMianTrans");
|
|
|
ChangeWaterCurve(0);
|
|
|
}
|
|
|
|
|
@@ -45,10 +45,12 @@ public class WaterRangeCtrlTool : MonoBehaviour
|
|
|
{
|
|
|
FxObjects[i].SetActive(true);
|
|
|
}
|
|
|
+ hemian.transform.localPosition = Vector3.forward * 35;
|
|
|
}
|
|
|
public void HideFx()
|
|
|
{
|
|
|
waterRangeMat.SetFloat("_ClipLength", 1);
|
|
|
+ hemian.transform.localPosition = Vector3.zero;
|
|
|
//for (int i = 0; i < FxObjects.Length; i++)
|
|
|
//{
|
|
|
// FxObjects[i].SetActive(false);
|