Пример #1
0
 private void AttachHost(GameObject host)
 {
     _hostObject = host;
     GameObjectTool.ForeachAllGameObject(host, (v) => {
         _objectDict[v.name] = v;
     });
 }
Пример #2
0
        private void UpdateParent()
        {
            if (_parent == null)
            {
                return;
            }

            if (_view == null || _view == _parent)
            {
                return;
            }

            GameObjectTool.AddChild(_view, _parent);
        }