Hi all,
I am new to game development, I am learning unity from http://www.vtc.com
and when i came to scripting part it started giving me errors
D:\My Unity
Projects\Tuts\Assets\Standard
Assets\Character
Controllers\Sources\Scripts\CharacterMotor.js(1,1):
Error BCE0021: Namespace ‘UnityEditor’
not found, maybe you forgot to add an
assembly reference? (BCE0021)
(Assembly-UnityScript-firstpass) D:\My
Unity
Projects\Tuts\Assets\Scripts\Respawn.js(13,13):
Error BCE0005: Unknown identifier:
‘Transform’. (BCE0005) (Respawn)
I never touched CharacterMotor.js but i started giving errors, and in my script respawn the I am not able to use Transform.
Please help me.
edit(copied from comment)
It's a simple script:
function Update ()
{
if (Transform.Position.y < -10)
{
print(Transform.Position.y);
}
if (Transform.Position.y < -20)
{
Transform.Position.x = 0;
Transform.Position.y = 2;
Transform.Position.z = 0;
}
}