Skip to content
Snippets Groups Projects
Commit e7a86192 authored by Fahrian Afdholi's avatar Fahrian Afdholi
Browse files

refactor: procedure scope

parent 0ae02c33
No related merge requests found
...@@ -20,7 +20,7 @@ public class Level01Controller : MonoBehaviour ...@@ -20,7 +20,7 @@ public class Level01Controller : MonoBehaviour
missionText.SetText(SetTextMission()); missionText.SetText(SetTextMission());
} }
string SetTextMission() private string SetTextMission()
{ {
return $"Your Mission\nKill Keroco {EnemyDeathCount}/{maxKerocoDeath}"; return $"Your Mission\nKill Keroco {EnemyDeathCount}/{maxKerocoDeath}";
} }
......
...@@ -27,7 +27,7 @@ public class Level02Controller : MonoBehaviour ...@@ -27,7 +27,7 @@ public class Level02Controller : MonoBehaviour
EventManager.StopListening("LeaderOfEnemyDeath", IncrementLeaderOfEnemyDeathCount); EventManager.StopListening("LeaderOfEnemyDeath", IncrementLeaderOfEnemyDeathCount);
} }
string SetTextMission() private string SetTextMission()
{ {
return $"Your Mission\nKill Keroco {EnemyDeathCount}/{maxKerocoDeath}\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderOfKerocoDeath}"; return $"Your Mission\nKill Keroco {EnemyDeathCount}/{maxKerocoDeath}\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderOfKerocoDeath}";
} }
......
...@@ -32,7 +32,7 @@ public class Level03Controller : MonoBehaviour ...@@ -32,7 +32,7 @@ public class Level03Controller : MonoBehaviour
EventManager.StopListening("AdmiralOfEnemyDeath", IncrementAdmiralOfEnemyDeathCount); EventManager.StopListening("AdmiralOfEnemyDeath", IncrementAdmiralOfEnemyDeathCount);
} }
string SetTextMission() private string SetTextMission()
{ {
return $"Your Mission\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderOfKerocoDeath}\nKill Jenderal {EnemyAdmiralDeathCount}/{maxAdmiralOfKerocoDeath}"; return $"Your Mission\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderOfKerocoDeath}\nKill Jenderal {EnemyAdmiralDeathCount}/{maxAdmiralOfKerocoDeath}";
} }
......
...@@ -33,7 +33,7 @@ public class Level04Controller : MonoBehaviour ...@@ -33,7 +33,7 @@ public class Level04Controller : MonoBehaviour
EventManager.StopListening("KingOfEnemyDeath", IncrementKingOfEnemyDeathCount); 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}"; return $"Your Mission\nKill Kepala Keroco {EnemyLeaderDeathCount}/{maxLeaderKerocoDeath}\nKill Jenderal {EnemyAdmiralDeathCount}/{maxAdmiralOfKerocoDeath}\nKill King {EnemyKingDeathCount}/{maxKingOfKerocoDeath}";
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment