/// <summary>
        /// Initialize Entry's parameters.
        /// </summary>
        private static void InitEntry()
        {
            if (_entry != null || Nodes.Contains(_entry))
            {
                return;
            }
            var rect = new Rect(_viewRect.width / 2 - 75, _viewRect.height / 2 - 15, 150, 30);

            _entry          = CreateInstance <EntryNode>();
            _entry.NodeName = "Entry";
            _entry.Rect     = rect;
            _entry.Id       = "0";
            Nodes.Add(_entry);
        }
 /// <summary>
 /// Load the last saved version of the Behaviour.
 /// </summary>
 /// <param name="obj"></param>
 private static void Reverse(object obj)
 {
     if (Behaviour == null)
     {
         return;
     }
     Behaviour.Serialize();
     foreach (var node in Behaviour.Nodes)
     {
         var entry = node as EntryNode;
         if (entry != null)
         {
             _entry = entry;
         }
         break;
     }
     _genericMenu = null;
 }
 /// <summary>
 /// Clear the editor and initialize the entry.
 /// </summary>
 /// <param name="obj"></param>
 public static void Clear(object obj)
 {
     Nodes  = new List <Node>();
     _entry = null;
     InitEntry();
 }