Karate man game switch cue fix

This commit is contained in:
Braedon
2022-01-29 18:30:29 -05:00
parent e4cc930b7e
commit eee8a3952f
4 changed files with 9 additions and 5 deletions

View File

@ -79,8 +79,8 @@ namespace RhythmHeavenMania
if (Beatmap.entities.Count >= 1)
{
SetCurrentGame(Beatmap.entities[0].datamodel.Split('/')[0]);
SetGame(Beatmap.entities[0].datamodel.Split('/')[0]);
SetCurrentGame(Beatmap.entities[0].datamodel.Split(0));
SetGame(Beatmap.entities[0].datamodel.Split(0));
}
}
@ -303,6 +303,10 @@ namespace RhythmHeavenMania
public GameObject GetGame(string name)
{
if (name == "gameManager")
{
name = Beatmap.entities.FindAll(c => c.datamodel.Split(0) != "gameManager").ToList()[0].datamodel.Split(0);
}
return Resources.Load<GameObject>($"Games/{name}");
}

View File

@ -35,7 +35,7 @@ namespace RhythmHeavenMania.Games.KarateMan
public static KarateJoe instance { get; set; }
private void Start()
private void Awake()
{
instance = this;
anim = GetComponent<Animator>();

View File

@ -70,7 +70,7 @@ namespace RhythmHeavenMania.Editor
Tooltip.AddTooltip(UndoBTN.gameObject, "Undo <color=#adadad>[Ctrl+Z]</color>");
Tooltip.AddTooltip(RedoBTN.gameObject, "Redo <color=#adadad>[Ctrl+Y or Ctrl+Shift+Z]</color>");
Tooltip.AddTooltip(MusicSelectBTN.gameObject, "Music Select");
Tooltip.AddTooltip(EditorSettingsBTN.gameObject, "Editor Settings <color=#adadad>[Ctrl+O]</color>");
Tooltip.AddTooltip(EditorSettingsBTN.gameObject, "Editor Settings <color=#adadad>[Ctrl+Shift+O]</color>");
}
public void Update()