IndieGame/client/Assets/Plugins/Easy Save 3/Scripts/ES3GameObject.cs

21 lines
529 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class ES3GameObject : MonoBehaviour
{
public List<Component> components = new List<Component>();
/* Ensures that this Component is always last in the List to guarantee that it's loaded after any Components it references */
private void Update()
{
if (Application.isPlaying)
return;
#if UNITY_EDITOR
UnityEditorInternal.ComponentUtility.MoveComponentDown(this);
#endif
}
}