mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:47:37 +02:00
Karate man game switch cue fix
This commit is contained in:
@ -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}");
|
||||
}
|
||||
|
||||
|
@ -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>();
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user