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