This commit is contained in:
vis2k 2021-02-18 13:56:01 +08:00
parent d83ce37760
commit d8187d4b7d

View File

@ -9,20 +9,15 @@ namespace Mirror
public class NetworkManagerEditor : Editor
{
SerializedProperty spawnListProperty;
ReorderableList spawnList;
protected NetworkManager networkManager;
protected void Init()
{
if (spawnList == null)
{
networkManager = target as NetworkManager;
spawnListProperty = serializedObject.FindProperty("spawnPrefabs");
spawnList = new ReorderableList(serializedObject, spawnListProperty)
{
drawHeaderCallback = DrawHeader,