- 最后登录
- 2021-7-6
- 注册时间
- 2012-12-27
- 阅读权限
- 90
- 积分
- 76145
- 纳金币
- 53464
- 精华
- 316
|
- using UnityEngine;
- using System.Collections;
- public class sssss : MonoBehaviour {
- float t1 = 0;
- int count = 0;
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- void FixedUpdate()
- {
- Ss();
- }
- void Ss()
- {
- t1 += 0.16f;
- if (t1 > 1f)
- {
- print("s");
- transform.Rotate(90, 0, 0);
- t1 = 0f;
- count++;
- }
- if (count == 5)
- {
- transform.Rotate(-90, 0, 0);
- transform.Rotate(0, -90, 0);
- count = 0;
- } transform.Translate(0, 0, 1);
- }
-
- }
复制代码 |
|