本文整理汇总了C#中Scene.AddToManagers方法的典型用法代码示例。如果您正苦于以下问题:C# Scene.AddToManagers方法的具体用法?C# Scene.AddToManagers怎么用?C# Scene.AddToManagers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Scene
的用法示例。
在下文中一共展示了Scene.AddToManagers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CustomInitialize
void CustomInitialize()
{
SpriteManager.Camera.UsePixelCoordinates();
SpriteManager.Camera.X = 129;
SpriteManager.Camera.Y = -216;
#if !XNA3
FlatRedBallServices.GraphicsOptions.TextureFilter = Microsoft.Xna.Framework.Graphics.TextureFilter.Point;
#endif
SpriteEditorScene ses = SceneSave.FromFile("Content/Screens/TmxScreen/FinalFantasyScene.scnx".ToLowerInvariant());
scene = new Scene();
ses.SetScene<Sprite>(ContentManagerName, scene, SceneSettingOptions.ConvertZSeparatedSpritesIntoSpriteGrids);
scene.Shift(new Vector3(0, 0, 0));
scene.AddToManagers();
TestLevel2.X -= 530;
if (string.IsNullOrEmpty(TilbTest.MapLayers[0].Name))
{
throw new Exception("Map layers names are not coming through");
}
// Layer 0 should be called "LayerWithStuff"
if (TmxWithEmptyLayers.MapLayers[0].Name != "LayerWithStuff")
{
throw new Exception("Having empty layers can screw up Layer names. " +
"This layer should be named \"LayerWithStuff\" but it is instead named " + TmxWithEmptyLayers.MapLayers[0].Name);
}
TestRotatedTiles();
}
示例2: LoadScene
public static void LoadScene(string fileName)
{
if (mLoadedScene != null)
{
UnloadScene();
}
mLoadedScene = FlatRedBallServices.Load<Scene>(fileName, SceneContentManager);
mLoadedScene.AddToManagers();
}
示例3: LoadScene
public static void LoadScene(string fileName)
{
if (mScene != null)
{
mScene.RemoveFromManagers();
mScene.Clear();
}
SpriteEditorScene ses = SpriteEditorScene.FromFile(fileName);
mScene = ses.ToScene(AppState.Self.PermanentContentManager);
mScene.AddToManagers();
FileMenuWindow.AttemptEmitterAttachment(fileName);
}