Only get one ship

This commit is contained in:
Nick 2022-03-11 10:29:22 -05:00
parent 376092cd03
commit f89a27922d

View File

@ -203,8 +203,11 @@ namespace NewHorizons
if(scene.name == "SolarSystem")
{
_ship = GameObject.Find("Ship_Body").InstantiateInactive();
DontDestroyOnLoad(_ship);
if(_ship != null)
{
_ship = GameObject.Find("Ship_Body").InstantiateInactive();
DontDestroyOnLoad(_ship);
}
IsSystemReady = false;