Skip to content

Commit d44eea1

Browse files
committed
Rename MonsterManager
1 parent af471dc commit d44eea1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/_Project/Scripts/Players/MonsterController.cs renamed to Assets/_Project/Scripts/Players/MonsterManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Attached to Player GameObject - Adds / removes monsters from the player
77
*/
8-
public class MonsterController : MonoBehaviour {
8+
public class MonsterManager : MonoBehaviour {
99

1010

1111

@@ -22,7 +22,7 @@ public class MonsterController : MonoBehaviour {
2222
// Start is called before the first frame update
2323
void Start ()
2424
{
25-
//Debug.Log ("MonsterController " + gameObject.name);
25+
//Debug.Log ("MonsterManager " + gameObject.name);
2626

2727
inputs = new TallyInputSystem ();
2828
inputs.Debug.MonsterAdd.performed += ctx => AddMonster ();
@@ -39,7 +39,7 @@ public void AddMonster (int _mid = -1)
3939

4040
if (_mid < 1) {
4141
// get a random mid from those in the game
42-
_mid = MonsterIndex.Instance.gameMids [(int)Random.Range (0, MonsterIndex.Instance.gameMids.Length)];
42+
_mid = MonsterIndex.Instance.GetRandomMid ();
4343
}
4444

4545

Assets/_Project/Scripts/Players/MonsterController.cs.meta renamed to Assets/_Project/Scripts/Players/MonsterManager.cs.meta

File renamed without changes.

0 commit comments

Comments
 (0)