public void DestroyStickyNote(MathStickyNote note)
 {
     if (note != null)
     {
         m_MathBook.Remove(note);
         UnityEngine.Object.DestroyImmediate(note, true);
     }
 }
 public void Remove(MathStickyNote sticky)
 {
     if (sticky == null || m_StickyNotes == null)
     {
         return;
     }
     m_StickyNotes.Remove(sticky);
     sticky.mathBook = null;
 }
        public void AddStickyNote(MathStickyNote note)
        {
            if (m_MathBook == null)
            {
                return;
            }

            m_MathBook.Add(note);
            AssetDatabase.AddObjectToAsset(note, m_MathBook);
        }
    public void Add(MathStickyNote sticky)
    {
        if (sticky == null)
        {
            return;
        }

        if (m_StickyNotes == null)
        {
            m_StickyNotes = new List <MathStickyNote>();
        }

        m_StickyNotes.Add(sticky);
        sticky.mathBook = this;
    }