From e7a86192b1bd7b28d8b08ed0a085616446c8c77c Mon Sep 17 00:00:00 2001 From: Fahrian Afdholi <89321009+fchrgrib@users.noreply.github.com> Date: Sat, 11 May 2024 05:31:38 +0700 Subject: [PATCH] refactor: procedure scope --- Assets/Level01Controller.cs | 2 +- Assets/Level02Controller.cs | 2 +- Assets/Level03Controller.cs | 2 +- Assets/Level04Controller.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Level01Controller.cs b/Assets/Level01Controller.cs index 9c104f3..76debf7 100644 --- a/Assets/Level01Controller.cs +++ b/Assets/Level01Controller.cs @@ -20,7 +20,7 @@ public class Level01Controller : MonoBehaviour missionText.SetText(SetTextMission()); } - string SetTextMission() + private string SetTextMission() { return $"Your Mission\nKill Keroco {EnemyDeathCount}/{maxKerocoDeath}"; } diff --git a/Assets/Level02Controller.cs b/Assets/Level02Controller.cs index cc433c7..a0decff 100644 --- a/Assets/Level02Controller.cs +++ b/Assets/Level02Controller.cs @@ -27,7 +27,7 @@ public class Level02Controller : MonoBehaviour EventManager.StopListening("LeaderOfEnemyDeath", IncrementLeaderOfEnemyDeathCount); } - string SetTextMission() + private string SetTextMission() { return $"Your Mission\nKill Keroco {EnemyDeathCount}/{maxKerocoDeath}\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderOfKerocoDeath}"; } diff --git a/Assets/Level03Controller.cs b/Assets/Level03Controller.cs index 24d4638..e5fe335 100644 --- a/Assets/Level03Controller.cs +++ b/Assets/Level03Controller.cs @@ -32,7 +32,7 @@ public class Level03Controller : MonoBehaviour EventManager.StopListening("AdmiralOfEnemyDeath", IncrementAdmiralOfEnemyDeathCount); } - string SetTextMission() + private string SetTextMission() { return $"Your Mission\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderOfKerocoDeath}\nKill Jenderal {EnemyAdmiralDeathCount}/{maxAdmiralOfKerocoDeath}"; } diff --git a/Assets/Level04Controller.cs b/Assets/Level04Controller.cs index 92bc69d..514ab64 100644 --- a/Assets/Level04Controller.cs +++ b/Assets/Level04Controller.cs @@ -33,7 +33,7 @@ public class Level04Controller : MonoBehaviour EventManager.StopListening("KingOfEnemyDeath", IncrementKingOfEnemyDeathCount); } - string SetTextMission() + private string SetTextMission() { return $"Your Mission\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderKerocoDeath}\nKill Jenderal {EnemyAdmiralDeathCount}/{maxAdmiralOfKerocoDeath}\nKill King {EnemyKingDeathCount}/{maxKingOfKerocoDeath}"; } -- GitLab