using UnityEngine;
using System.Collections;

public class Flipped : MonoBehaviour {

    // Update is called once per frame
    void Update () {

        Rigidbody2D rigid = gameObject.GetComponent<Rigidbody2D> ();
        rigid.velocity = new Vector2 (1, 0);

    }
}

 

相关文章:

  • 2021-10-18
  • 2022-12-23
  • 2021-07-10
  • 2021-07-11
  • 2021-11-21
  • 2021-11-02
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-10-20
相关资源
相似解决方案