Fix bug with ShipMoveSides script reference
This commit is contained in:
parent
996684f064
commit
5c7d84cca8
File diff suppressed because one or more lines are too long
|
@ -17,7 +17,7 @@ public class CutsceneController : MonoBehaviour
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_shipMoveSides = FindObjectOfType<ShipPathFollower>().GetComponent<ShipMoveSides>();
|
_shipMoveSides = FindObjectOfType<PlayerInputHandler>().GetComponent<ShipMoveSides>();
|
||||||
_previewModule = FindObjectOfType<PreviewModule>();
|
_previewModule = FindObjectOfType<PreviewModule>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ public class CutsceneController : MonoBehaviour
|
||||||
|
|
||||||
private IEnumerator CutsceneCoroutine()
|
private IEnumerator CutsceneCoroutine()
|
||||||
{
|
{
|
||||||
|
Debug.Log("Cutscene Coroutine");
|
||||||
_shipMoveSides.ToggleInput(false);
|
_shipMoveSides.ToggleInput(false);
|
||||||
_previewModule.TogglePanel(true);
|
_previewModule.TogglePanel(true);
|
||||||
_cutscene.Play();
|
_cutscene.Play();
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class FinishController : MonoBehaviour
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_moveSides = FindObjectOfType<ShipMoveSides>();
|
_moveSides = FindObjectOfType<PlayerInputHandler>().GetComponent<ShipMoveSides>();
|
||||||
_vTimerCounter = FindObjectOfType<vTimerCounter>();
|
_vTimerCounter = FindObjectOfType<vTimerCounter>();
|
||||||
_monumentController = FindObjectOfType<MonumentController>();
|
_monumentController = FindObjectOfType<MonumentController>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue