Skip to content

Commit 3d58fa3

Browse files
committed
up
1 parent 8fd5a1e commit 3d58fa3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/Scripts/u3d_scripts/World.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,12 @@ public void onAvatarEnterWorld(UInt64 rndUUID, Int32 eid, KBEngine.Avatar avatar
118118
public void createPlayer()
119119
{
120120
if (player != null)
121+
{
122+
if(terrain != null)
123+
player.GetComponent<GameEntity>().entityEnable();
121124
return;
122-
125+
}
126+
123127
if (KBEngineApp.app.entity_type != "Avatar") {
124128
return;
125129
}

0 commit comments

Comments
 (0)