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;
}
}