а кватернион для них - вообще что-то из области куннилингуса.
var tete : String;
function Awake()
{
name = "CamMoving";
}
function Update ()
{
//до этого всё нужное считается и всё отлично, поэтому не буду полностью копипастить - нету в этом смысла
tete = "Vel: " + shipVelocity + "\nSlide Vel: " + shipSlideVelocity + "\nUpSlide Vel: " + shipUpSlideVelocity;
}
private var windowRect : Rect = Rect (20, 20, 220, 100);
function OnGUI ()
{
windowRect = GUI.Window (0, windowRect, WindowFunction, "My Window");
}
function WindowFunction (windowID : int) {
var other = gameObject.GetComponent(CamMoving);
print(other.tete);
}
NullReferenceException: Object reference not set to an instance of an object
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6