using UnityEngine;
using System.Collections;

public class Triangle : MonoBehaviour {

	public float speed = 90;
	
	// Update is called once per frame
	void Update () {
		transform.Rotate(Vector3.forward*Time.deltaTime*speed);
	}

	public void ChangeSpeed(float speedNew)
	{
		this.speed = speedNew;
	}
}

相关文章:

  • 2022-01-15
  • 2021-07-27
  • 2022-12-23
  • 2021-12-18
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-04-25
相关资源
相似解决方案