public override void Initialize(bool addToManagers) { LoadStaticContent(ContentManagerName); PlayerInstance = new Platformer.Entities.Player(ContentManagerName, false); PlayerInstance.Name = "PlayerInstance"; PostInitialize(); base.Initialize(addToManagers); if (addToManagers) { AddToManagers(); } }
public override void Initialize(bool addToManagers) { LoadStaticContent(ContentManagerName); PlayerInstance = new Platformer.Entities.Player(ContentManagerName, false); PlayerInstance.Name = "PlayerInstance"; PositionedObjectListInstance = new FlatRedBall.Math.PositionedObjectList <Platformer.Entities.HealthPoint>(); PositionedObjectListInstance.Name = "PositionedObjectListInstance"; PostInitialize(); base.Initialize(addToManagers); if (addToManagers) { AddToManagers(); } }