We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb1935 commit f40462eCopy full SHA for f40462e
Assets/Scripts/u3d_scripts/World.cs
@@ -141,6 +141,11 @@ public void createPlayer()
141
player.GetComponent<GameEntity>().entityDisable();
142
avatar.renderObj = player;
143
((UnityEngine.GameObject)avatar.renderObj).GetComponent<GameEntity>().isPlayer = true;
144
+
145
+ // 有必要设置一下,有可能set_position已经先触发了,那么如果不设置
146
+ // renderObj的位置和方向将为0,人物会陷入地下
147
+ set_position(avatar);
148
+ set_direction(avatar);
149
}
150
151
public void onAddSkill(KBEngine.Entity entity)
0 commit comments