quick code cleaning
Marco Andronaco andronacomarco@gmail.com
Wed, 15 Apr 2020 16:22:48 +0200
1 files changed,
3 insertions(+),
4 deletions(-)
M
Assets/Scripts/Utility/GameMaster.cs
→
Assets/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 {