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
    }
示例#2
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
     FunctionHelper.SetRootThenDontDestroy(this.gameObject);
 }