Cleanup compile warnings, cleanup logs, spruce up level selection menu
This commit is contained in:
@@ -139,7 +139,7 @@ namespace AppleHills.Editor.PuzzleSystem
|
||||
// Apply any pending changes
|
||||
if (_isDirty)
|
||||
{
|
||||
SaveChanges();
|
||||
SavePuzzleChanges();
|
||||
_isDirty = false;
|
||||
}
|
||||
}
|
||||
@@ -686,7 +686,7 @@ namespace AppleHills.Editor.PuzzleSystem
|
||||
_isDirty = false;
|
||||
}
|
||||
|
||||
private void SaveChanges()
|
||||
private void SavePuzzleChanges()
|
||||
{
|
||||
AssetDatabase.SaveAssets();
|
||||
AssetDatabase.Refresh();
|
||||
@@ -782,7 +782,7 @@ namespace AppleHills.Editor.PuzzleSystem
|
||||
if (!_isPlaying) return;
|
||||
|
||||
// Find PuzzleManager instance
|
||||
PuzzleManager puzzleManager = Object.FindObjectOfType<PuzzleManager>();
|
||||
PuzzleManager puzzleManager = Object.FindFirstObjectByType<PuzzleManager>();
|
||||
|
||||
if (puzzleManager == null)
|
||||
{
|
||||
@@ -816,7 +816,7 @@ namespace AppleHills.Editor.PuzzleSystem
|
||||
{
|
||||
if (!_isPlaying || step == null) return;
|
||||
|
||||
PuzzleManager puzzleManager = Object.FindObjectOfType<PuzzleManager>();
|
||||
PuzzleManager puzzleManager = Object.FindFirstObjectByType<PuzzleManager>();
|
||||
if (puzzleManager == null) return;
|
||||
|
||||
// Get current unlock state
|
||||
@@ -860,7 +860,7 @@ namespace AppleHills.Editor.PuzzleSystem
|
||||
{
|
||||
if (!_isPlaying || step == null) return;
|
||||
|
||||
PuzzleManager puzzleManager = Object.FindObjectOfType<PuzzleManager>();
|
||||
PuzzleManager puzzleManager = Object.FindFirstObjectByType<PuzzleManager>();
|
||||
if (puzzleManager == null) return;
|
||||
|
||||
// Complete the step
|
||||
|
||||
Reference in New Issue
Block a user