move _remoteCameraPlatform caching to Start

This commit is contained in:
JohnCorby 2021-12-29 00:14:50 -08:00
parent 8315bc3046
commit 2d5cceee07

View File

@ -11,12 +11,14 @@
{ {
base.Awake(); base.Awake();
_oldStreaming = GetComponent<NomaiRemoteCameraStreaming>(); _oldStreaming = GetComponent<NomaiRemoteCameraStreaming>();
_remoteCameraPlatform = _oldStreaming._remoteCameraPlatform.GetComponent<CustomNomaiRemoteCameraPlatform>();
SetSector(_oldStreaming.GetSector()); SetSector(_oldStreaming.GetSector());
} }
private void Start() private void Start()
=> enabled = false; {
_remoteCameraPlatform = _oldStreaming._remoteCameraPlatform.GetComponent<CustomNomaiRemoteCameraPlatform>();
enabled = false;
}
private void FixedUpdate() private void FixedUpdate()
{ {