粒子系统不动

Particle system not moving

我正在制作一个关于一条鱼游到学校的小型无尽赛跑游戏,我想包含一个粒子系统来复制气泡并在它加速时显示。为了让鱼游过障碍物,他不断向前。但是,当我尝试通过脚本向前移动粒子生成器时,它不起作用。谁能告诉我为什么?

这是我的代码:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class motion : MonoBehaviour {

    public float motionSpeed = 1f;
    // Use this for initialization
    void Start () {

    }

    // Update is called once per frame
    void Update () {
        transform.Translate(motionSpeed / 10, 0, 0);
        motionSpeed += motionSpeed / 7200;
    }
}

我建议将您的粒子系统附加到一个单独的游戏对象上,该游戏对象是游动的 child 鱼。