initialize scan beams in Awake so it isnt null on OnFinishUnequipAnimation

This commit is contained in:
JohnCorby 2022-02-11 06:23:05 -08:00
parent bd6a199665
commit b39cf48c7b

View File

@ -34,11 +34,6 @@ namespace QSB.Tools.TranslatorTool
TurnOffArrowEmission();
TranslatorProp.SetActive(false);
}
private void Start()
{
_scanBeams = transform.GetComponentsInChildren<QSBTranslatorScanBeam>();
for (var i = 0; i < _scanBeams.Length; i++)
{
@ -46,6 +41,8 @@ namespace QSB.Tools.TranslatorTool
}
enabled = false;
TranslatorProp.SetActive(false);
}
private void TurnOffArrowEmission()