12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class StoneMove : MonoBehaviour {
- public float MoveSpeed;
-
-
- // Use this for initialization
- void Start () {
-
-
- }
- // Update is called once per frame
- //石头的移动和旋转
- void Update () {
- transform.Rotate(Vector3.right*150f*Time.deltaTime,Space.Self);
- transform.Translate(Vector3.forward*MoveSpeed*Time.deltaTime,Space.World);
- }
-
-
- }
|