gameplay globals cleanup
This commit is contained in:
@@ -198,15 +198,8 @@ namespace Game
|
||||
string workDir = Directory.GetCurrentDirectory();
|
||||
string matBasePath = Path.Combine(workDir, "Content");
|
||||
string assetPath = Path.Combine(matBasePath, "GameplayGlobals.flax");
|
||||
//40caea634c3e619b7c35588f1cbdb967
|
||||
|
||||
GameplayGlobals globals;
|
||||
globals = Content.GetAsset(assetPath) as GameplayGlobals;
|
||||
if (globals == null)
|
||||
globals = Content.Load<GameplayGlobals>(assetPath);
|
||||
|
||||
//globals = Content.GetAsset(assetPath) as GameplayGlobals;
|
||||
//GameplayGlobals globals = Content..GetAsset(new Guid("40caea634c3e619b7c35588f1cbdb967")) as GameplayGlobals;
|
||||
GameplayGlobals globals = Content.Load<GameplayGlobals>(assetPath);
|
||||
|
||||
return ((bool)globals.GetValue("Scene Lighting") ? "1" : "0");
|
||||
}
|
||||
@@ -215,12 +208,8 @@ namespace Game
|
||||
string workDir = Directory.GetCurrentDirectory();
|
||||
string matBasePath = Path.Combine(workDir, "Content");
|
||||
string assetPath = Path.Combine(matBasePath, "GameplayGlobals.flax");
|
||||
//GameplayGlobals globals = Content.GetAsset(assetPath) as GameplayGlobals;
|
||||
//GameplayGlobals globals = Content.GetAsset(new Guid("40caea634c3e619b7c35588f1cbdb967")) as GameplayGlobals;
|
||||
GameplayGlobals globals;
|
||||
globals = Content.GetAsset(assetPath) as GameplayGlobals;
|
||||
if (globals == null)
|
||||
globals = Content.Load<GameplayGlobals>(assetPath);
|
||||
|
||||
GameplayGlobals globals = Content.Load<GameplayGlobals>(assetPath);
|
||||
|
||||
bool boolValue = false;
|
||||
if (int.TryParse(value, out int intValue))
|
||||
|
||||
Reference in New Issue
Block a user