Ejemplo n.º 1
0
        public void UnRegisterViewSource(DrawMeshViewSourceBase prefab)
        {
            if (prefab == null)
            {
                ViewSourceIsNullException.Throw();
            }

            this.UnRegisterViewSource(prefab.GetSource());
        }
Ejemplo n.º 2
0
        public ViewId RegisterViewSource(DrawMeshViewSourceBase prefab)
        {
            if (prefab == null)
            {
                ViewSourceIsNullException.Throw();
            }

            return(this.RegisterViewSource(new UnityDrawMeshProviderInitializer(), prefab.GetSource()));
        }
Ejemplo n.º 3
0
        public void InstantiateView(DrawMeshViewSourceBase prefab, Entity entity)
        {
            if (prefab == null)
            {
                ViewSourceIsNullException.Throw();
            }

            var viewSource = prefab.GetSource();

            this.InstantiateView(this.GetViewSourceId(viewSource), entity);
        }