1.Serializable The Serializable attribute lets you embed a class with sub properties in the inspector.让你能够把它嵌入到另外一个class时在属性编辑器里能将其展开[System.Serializable]class Test{ public int p=5;...
Removes this script instance from the game object/从游戏物体删除该脚本实例Destroy(this);Removes the rigidbody from the game object/从游戏物体删除刚体Destroy(rigidbody);Kills the game object in 5 seconds after loading the ...