-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3364 from KBVE/dev
Preparing Alpha Branch
- Loading branch information
Showing
6 changed files
with
56 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/mmextensions/mmextensions/Shaco/GameManagerEntryPoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using UnityEngine; | ||
using VContainer; | ||
using VContainer.Unity; | ||
using MoreMountains.TopDownEngine; | ||
|
||
namespace KBVE.MMExtensions.Shaco | ||
{ | ||
public class GameManagerEntryPoint : IStartable | ||
{ | ||
private readonly GameManager _gameManager; | ||
|
||
public GameManagerEntryPoint(GameManager gameManager) | ||
{ | ||
_gameManager = gameManager; | ||
} | ||
|
||
public void Start() | ||
{ | ||
// Initialize GameManager values | ||
_gameManager.TargetFrameRate = 60; | ||
_gameManager.MaximumLives = 5; | ||
_gameManager.CurrentLives = 5; | ||
_gameManager.GameOverScene = "GameOver"; | ||
|
||
Debug.Log("GameManager initialized via EntryPoint!"); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/mmextensions/mmextensions/Shaco/GameManagerEntryPoint.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.