摘要: private float rotateSpeed = 0; private int maxSpeed = 1500; private bool speedUp = false; //旋转状态,加速,减速 // Start is called before the first frame updat 阅读全文
posted @ 2024-07-20 16:56 暖暖De幸福 阅读(12) 评论(0) 推荐(0) 编辑
摘要: [Tooltip("严格按照红、黄、绿排序")] public Material[] colors; int index = 0; // Start is called before the first frame update void Start() { ChangeColor(); } // 阅读全文
posted @ 2024-07-20 16:56 暖暖De幸福 阅读(5) 评论(0) 推荐(0) 编辑
摘要: InvokeRepeating 和 Invoke public Material[] colors; float speed = 5; // Start is called before the first frame update void Start() { //Invoke("AutoChan 阅读全文
posted @ 2024-07-20 16:29 暖暖De幸福 阅读(2) 评论(0) 推荐(0) 编辑