Do our business in bodyWillEnter() which is more appropriate.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@787 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -111,6 +111,15 @@ public class SpotSceneManager extends SceneManager
|
||||
updateLocation(body, portal.getLocation());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bodyWillEnter (BodyObject body)
|
||||
{
|
||||
super.bodyWillEnter(body);
|
||||
|
||||
// assign this body a starting location in the scene
|
||||
assignStartingLocation(body);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void didStartup ()
|
||||
{
|
||||
@@ -160,16 +169,6 @@ public class SpotSceneManager extends SceneManager
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void insertOccupantInfo (OccupantInfo info, BodyObject body)
|
||||
{
|
||||
super.insertOccupantInfo(info, body);
|
||||
|
||||
// we don't actually populate their occupant info, but instead assign them their starting
|
||||
// location in the scene
|
||||
assignStartingLocation(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Give our new body a starting location.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user