Skip to content

Commit 945af6a

Browse files
committed
up
1 parent 3aca285 commit 945af6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/Scripts/GameEntity.cs

60 Bytes
Binary file not shown.

Assets/Scripts/World.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void addSpaceGeometryMapping(string respath)
8080
if(terrain == null)
8181
terrain = Instantiate(terrainPerfab) as UnityEngine.GameObject;
8282

83-
player.GetComponent<GameEntity>().enable();
83+
player.GetComponent<GameEntity>().entityEnable();
8484
}
8585

8686
public void onAvatarEnterWorld(UInt64 rndUUID, Int32 eid, KBEngine.Avatar avatar)
@@ -137,7 +137,7 @@ public void createPlayer()
137137
player = Instantiate(avatarPerfab, new Vector3(avatar.position.x, y, avatar.position.z),
138138
Quaternion.Euler(new Vector3(avatar.direction.y, avatar.direction.z, avatar.direction.x))) as UnityEngine.GameObject;
139139

140-
player.GetComponent<GameEntity>().disable();
140+
player.GetComponent<GameEntity>().entityDisable();
141141
avatar.renderObj = player;
142142
((UnityEngine.GameObject)avatar.renderObj).GetComponent<GameEntity>().isPlayer = true;
143143
}

0 commit comments

Comments
 (0)