- Код: Выделить всё
Audio devices: Generic Hardware (default: Generic Hardware)
Player: init engine
Direct3D:
Version: Direct3D 9.0c [nv4_disp.dll 6.14.11.7824]
Renderer: NVIDIA GeForce 8500 GT
Vendor: NVIDIA
VRAM: 512 MB
desktop: 1280x1024 60Hz; virtual: 1280x1024 at 0,0
Couldn't load the script "CoconutThrow" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)
Cleanup player
Содержимое скрипта, кот.не может загрузить, чтоб его:
- Код: Выделить всё
var myShellPrefab : Rigidbody;
var ShellForce = 30;
var ShellRotate : Vector3;
function Update () {
if (Input.GetButtonDown("Fire1"))
{
var Coconut : Rigidbody = Instantiate(myShellPrefab, transform.position, transform.rotation);
Coconut.transform.position = Coconut.transform.position + ShellRotate;
Coconut.velocity = transform.TransformDirection(ShellForce, 0, 0);
}
}
Провозился часа три, пробовал разные имена давать, писать на Си, всяко пробовал. В редакторе работает, после компиляции нет. Есть еще в проекте скрипт написанный мной, он работает.