|
@@ -19,6 +19,7 @@ public class Trans_Float : MonoBehaviour
|
|
|
private GameObject curlock; //当前漂浮特效
|
|
private GameObject curlock; //当前漂浮特效
|
|
|
public GameObject fe;
|
|
public GameObject fe;
|
|
|
private GameObject curFe;
|
|
private GameObject curFe;
|
|
|
|
|
+ public float moveSpeed; //特效移动速度
|
|
|
|
|
|
|
|
private bool once = false;
|
|
private bool once = false;
|
|
|
|
|
|
|
@@ -74,7 +75,7 @@ public class Trans_Float : MonoBehaviour
|
|
|
curlock.transform.position = transform.position;
|
|
curlock.transform.position = transform.position;
|
|
|
curlock.SetActive(true);
|
|
curlock.SetActive(true);
|
|
|
}
|
|
}
|
|
|
- curlock.transform.position += new Vector3(controller.moveVec.x, 0, 0);
|
|
|
|
|
|
|
+ curlock.transform.position += new Vector3(controller.moveVec.x, 0, 0) * moveSpeed;
|
|
|
if (pastTime >= keepFloatTime)
|
|
if (pastTime >= keepFloatTime)
|
|
|
{
|
|
{
|
|
|
controller.isinputK = false;
|
|
controller.isinputK = false;
|