📜  使角色永远向上移动 unity 2d - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.147000             🧑  作者: Mango

代码示例1
public Rigidbody2D m_Rigidbody;
    public float m_Speed;


    void Start()
    {
        m_Rigidbody.velocity = transform.up * m_Speed;
    }