all repos — RPG @ 52fdf8201f67d07e007b532c35ef7d502843d4d5

Fully functional 3D turn based role playing game coded in C# and base Unity.

quick code cleaning
Marco Andronaco andronacomarco@gmail.com
Wed, 15 Apr 2020 16:22:48 +0200
commit

52fdf8201f67d07e007b532c35ef7d502843d4d5

parent

2c47b59ca4f9a2bb3bef127052e434f0c5c48cfa

1 files changed, 3 insertions(+), 4 deletions(-)

jump to
M Assets/Scripts/Utility/GameMaster.csAssets/Scripts/Utility/GameMaster.cs

@@ -42,15 +42,12 @@

public int currentLevel = 0; private string[] partyNames = { "Paladin", "Archer", "Boxer", "Mage" }; - private List<string> bossNames = new List<string>(); + private List<string> bossNames = new List<string>{ "Brady", "Ganfaul" }; private Stats tempStats; #endregion private void Start() { - bossNames.Add("Brady"); - bossNames.Add("Ganfaul"); - //start timer timer = 0;

@@ -115,6 +112,8 @@ currentLevel++;

fighting = ""; killedEnemies = new List<string>(); } + Debug.Log("battle ended. fighting=" + fighting + ", currentLevel: " + currentLevel + ", killedEnemies:"); + killedEnemies.ForEach(Console.WriteLine); SceneManager.LoadScene("Level" + currentLevel); } else //Lost Battle {