浏览代码

Change Awake() to Start() in Spawning System (#120) (#136)

Issue #120

When the scenes are additively loaded, GameObject instantiation should be put in Start(), because Awake() is exectuted before the new scene becomes active.

Reference thread: https://forum.unity.com/threads/additive-scene-loading-and-awake.660379/
/main
GitHub 4 年前
当前提交
aed4d5ec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      UOP1_Project/Assets/Scripts/SpawnSystem.cs

2
UOP1_Project/Assets/Scripts/SpawnSystem.cs


[SerializeField] private CameraManager _cameraManager;
[SerializeField] private Transform[] _spawnLocations;
void Awake()
void Start()
{
try
{

正在加载...
取消
保存