Skip to content
Permalink
Browse files

[Samples] Removed reference to RenderContext.SceneInstance (fixes #386)

  • Loading branch information
xen2 committed Feb 25, 2019
1 parent 8ff58ad commit 618f743e1435d59d2a4db6bbc82402d28f278d0a
@@ -43,7 +43,7 @@ protected override void DrawCore(RenderContext context, RenderDrawContext drawCo
spriteBatch.End();

// Draw touch inputs
var entity = context.SceneInstance.RootScene.Entities[0]; // Note: there's only one entity in our scene
var entity = SceneInstance.GetCurrent(context).RootScene.Entities[0]; // Note: there's only one entity in our scene
entity.Get<TouchInputsScript>().Render(drawContext, spriteBatch);
}
}
@@ -88,7 +88,7 @@ public static void LoadDefaultTemplates()
{
// Load templates
// Currently hardcoded, this will need to change with plugin system
foreach (var packageInfo in new[] { new { Name = "Xenko.Assets.Presentation", Version = XenkoVersion.NuGetVersion }, new { Name = "Xenko.SpriteStudio.Offline", Version = XenkoVersion.NuGetVersion }, new { Name = "Xenko.Samples.Templates", Version = XenkoVersion.NuGetVersionSuffix != string.Empty ? "3.1.0.1-beta01" : "3.1.0.1" } })
foreach (var packageInfo in new[] { new { Name = "Xenko.Assets.Presentation", Version = XenkoVersion.NuGetVersion }, new { Name = "Xenko.SpriteStudio.Offline", Version = XenkoVersion.NuGetVersion }, new { Name = "Xenko.Samples.Templates", Version = XenkoVersion.NuGetVersionSuffix != string.Empty ? "3.1.0.1-beta02" : "3.1.0.1" } })
{
var logger = new LoggerResult();
var packageFile = PackageStore.Instance.GetPackageFileName(packageInfo.Name, new PackageVersionRange(new PackageVersion(packageInfo.Version)));
@@ -8,7 +8,7 @@
<!-- Note: we version this package manually because most of the time the samples are big and don't need to be updated.
PLEASE UPDATE XenkoDefaultAssetsPlugin.LoadDefaultTemplates() accordingly! -->
<PackageVersion>3.1.0.1</PackageVersion>
<PackageVersion Condition="'$(XenkoOfficialBuild)' != 'true'">$(PackageVersion)-beta01</PackageVersion>
<PackageVersion Condition="'$(XenkoOfficialBuild)' != 'true'">$(PackageVersion)-beta02</PackageVersion>
</PropertyGroup>

<Import Project="$(XenkoPostSettingsTargets)" />

0 comments on commit 618f743

Please sign in to comment.
You can’t perform that action at this time.