You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
404 B

  1. using UnityEngine;
  2. using System.Collections;
  3. public class playerController : MonoBehaviour {
  4. public float startingRotation;
  5. public float minSpeed;
  6. private Rigidbody2D rigid;
  7. // Use this for initialization
  8. void Start () {
  9. rigid = GetComponent<Rigidbody2D>();
  10. rigid.AddTorque(startingRotation);
  11. }
  12. // Update is called once per frame
  13. void FixedUpdate () {
  14. }
  15. }