Added Accessors for the GameManager to get the Score, Cores and Level values
Added a Score to the Game Added an actual blackhole material and shader to the black hole Added a new Main menu and How to Play menu system Added Beam swords to all ships (replacing the light saber things the player had) Added a pause menu Overhauled the UI for the game scene Added List to hold the amount of core energy needed for each level Added the URP package for better rendering (apparently) Added a GameState enum to set which part of the game the player is in Added Magnet powerup to game Changed the way powerups are spawned, enemies now have a loot table Changed cores to core energy which is a percentage needed to pass a level Changed all the Ints to Hidden Value ints to maybe stop cheat engine users finding the important values Changed all level loads to use sceneloadasync Updated all of the materials to use URP shaders Removed Junk Files from external sources Rearranged the folders inside the unity project to try and reduce some name length issues
This commit is contained in:
@ -19,7 +19,7 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
/// Method to toggle the debug console
|
||||
/// </summary>
|
||||
public void ToggleDebugConsole(bool force = false)
|
||||
{
|
||||
{
|
||||
if (_toggleWindow && !force)
|
||||
{
|
||||
Time.timeScale = 1.0f;
|
||||
@ -35,10 +35,10 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
private void OnGUI()
|
||||
{
|
||||
if (!_toggleWindow)
|
||||
{
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Draw the GUI box for the console box at the top of the screen
|
||||
GUI.Box(new Rect(0, 0, Screen.width, 30), "");
|
||||
GUI.backgroundColor = new Color(0, 0, 0, 0);
|
||||
@ -87,11 +87,11 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
_prevCommands.Add(_commandIn);
|
||||
_prevCommandIndex = _prevCommands.Count - 1;
|
||||
}
|
||||
_commandIn = "";
|
||||
_commandIn = "";
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Wait for user input
|
||||
GUI.SetNextControlName("DebugConsole");
|
||||
@ -105,10 +105,10 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
/// </summary>
|
||||
/// <param name="currentCommand">Command string to parse</param>
|
||||
private void ParseCommand(string currentCommand)
|
||||
{
|
||||
{
|
||||
// Split the command by its space characters, first command part should always be the actual command with parameters following
|
||||
string[] commandParts = currentCommand.ToLower().Split(' ');
|
||||
switch(commandParts[0])
|
||||
switch (commandParts[0])
|
||||
{
|
||||
// Suicide player
|
||||
case "die":
|
||||
@ -255,11 +255,11 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
{
|
||||
if (levelsToJump > 0)
|
||||
{
|
||||
GameManager.Instance.level = GameManager.Instance.level + levelsToJump;
|
||||
GameManager.Instance.WarpLevels(levelsToJump);
|
||||
}
|
||||
}
|
||||
|
||||
private void ToggleFreezeAll()
|
||||
private void ToggleFreezeAll()
|
||||
{
|
||||
GameObject[] currentEnemies = GameObject.FindGameObjectsWithTag("Enemy");
|
||||
foreach (GameObject currentEnemy in currentEnemies)
|
||||
@ -294,7 +294,7 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
/// </summary>
|
||||
private void HealPlayer()
|
||||
{
|
||||
GameManager.Instance.lives = 10;
|
||||
GameManager.Instance.AddLife(10);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -315,10 +315,7 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
/// <param name="amount">Amount of cores to add</param>
|
||||
private void AddCore(int amount)
|
||||
{
|
||||
for (int i = 0; i < amount; i++)
|
||||
{
|
||||
GameManager.Instance.AddCore();
|
||||
}
|
||||
GameManager.Instance.AddCore(amount);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user