Hey I have a pretty basic question.
if I have following
var myTransform : Transform = GameObject.Find("myTransform").transform;
function Start()
{
}
and I have
var myTransform : Transform;
function Start()
{
myTransform = GameObject.Find("myTransform").transform;
}
which of the both method is the better one to use?
or if I assign a variable outside any function (as in the first example), will it be called before the Start and/or Awake function?/ will it be called before any Awake or Start function?