在Lua里写unity游戏笔记

gameobject.GetComponent<Transform>();
翻译成Lua:


gameObject:GetComponent (luanet.ctype (Transform))