File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Assets/_Project/Scripts/Players Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
File renamed without changes.
You can’t perform that action at this time.
0 commit comments