void OnEnable() { m_target = (MonsterReference)target; GetTarget = new SerializedObject(m_target); ThisList = GetTarget.FindProperty("m_Data"); // Find the List in our script and create a refrence of it }
private void Awake() { if (instance != null && instance != this) { Destroy(gameObject); } else { instance = this; } FunctionHelper.SetRootThenDontDestroy(this.gameObject); }