Add prefab support
This commit is contained in:
+1
-13
@@ -23,19 +23,7 @@
|
||||
},
|
||||
{
|
||||
"name": "player",
|
||||
"components": [
|
||||
{ "type": "POSITION", "x": 0, "y": 5, "z": 0 },
|
||||
{
|
||||
"type": "RENDERABLE",
|
||||
"renderType": "SHADER_MATERIAL",
|
||||
"priority": 0,
|
||||
"shaderType": "UNLIT",
|
||||
"color": { "r": 255, "g": 80, "b": 80, "a": 255 },
|
||||
"displayState": { "cull": false, "depthTest": true, "blend": false }
|
||||
},
|
||||
{ "type": "PLAYER", "moveSpeed": 4, "jumpImpulse": 6 },
|
||||
{ "type": "PHYSICS", "bodyType": "DYNAMIC", "collideMask": 3 }
|
||||
]
|
||||
"extend": "PLAYER"
|
||||
},
|
||||
{
|
||||
"components": [
|
||||
|
||||
Reference in New Issue
Block a user