Update InstrumentsManager.cs

This commit is contained in:
Mister_Nebula 2020-12-14 21:38:30 +00:00
parent 3166434aac
commit ee12bfebbc

View File

@ -19,11 +19,11 @@ namespace QSB.Instruments
_rootObj = root; _rootObj = root;
gameObject.AddComponent<CameraManager>(); gameObject.AddComponent<CameraManager>();
QSBInputManager.ChertTaunt += () => StartInstrument(AnimationType.Chert); QSBInputManager.ChertTaunt += OnChertTaunt;
QSBInputManager.EskerTaunt += () => StartInstrument(AnimationType.Esker); QSBInputManager.EskerTaunt += OnEskerTaunt;
QSBInputManager.FeldsparTaunt += () => StartInstrument(AnimationType.Feldspar); QSBInputManager.FeldsparTaunt += OnFeldsparTaunt;
QSBInputManager.GabbroTaunt += () => StartInstrument(AnimationType.Gabbro); QSBInputManager.GabbroTaunt += OnGabbroTaunt;
QSBInputManager.RiebeckTaunt += () => StartInstrument(AnimationType.Riebeck); QSBInputManager.RiebeckTaunt += OnRiebeckTaunt;
QSBInputManager.ExitTaunt += ReturnToPlayer; QSBInputManager.ExitTaunt += ReturnToPlayer;
QSBCore.Helper.Events.Unity.RunWhen(() => Locator.GetPlayerBody() != null, SetupInstruments); QSBCore.Helper.Events.Unity.RunWhen(() => Locator.GetPlayerBody() != null, SetupInstruments);