I need your help!!
i do a tachometer for a speed of a car!
this is the CarTacho.cs:
using UnityEngine;
using System.Collections;
public class CarTacho : MonoBehaviour {
public Texture2D tachoDisplay;
public Texture2D tachoPointer;
void OnGUI ()
{
GUI.Label(new Rect(10, 140, tachoDisplay.width, tachoDisplay.height), tachoDisplay);
GUIUtility.RotateAroundPivot(rigidbody.velocity.magnitude * 3.6f + 40,Vector2(70,70));
GUI.Label(new Rect(10, 140, tachoPointer.width, tachoPointer.height), tachoPointer);
}
}
The errors:
1 - Assets/Scripts/CarTacho.cs(12,87): error CS0119: Expression denotes a type', where a variable’, value' or method group’ was expected
2 - Assets/Scripts/CarTacho.cs(12,28): error CS1502: The best overloaded method match for `UnityEngine.GUIUtility.RotateAroundPivot(float, UnityEngine.Vector2)’ has some invalid arguments
3 - Assets/Scripts/CarTacho.cs(12,28): error CS1503: Argument #2' cannot convert object’ expression to type `UnityEngine.Vector2’
Can you help me?
Please i need your help!!