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