Пример #1
0
        public virtual ViewBaseClass Bind(UnityView u3dView)
        {
            Clear();

            unityView = u3dView;
            return(this);
        }
Пример #2
0
        public static IView CreateView(GameEntity entity)
        {
            var view = new UnityView();

            view.Create(entity);
            return(view);
        }
Пример #3
0
        public void Ceate(UnityView u3dView)
        {
            TryNewBody();

            unityView       = u3dView;
            rendererCom     = (ViewRenderer)(rendererCom?.Bind(u3dView) ?? new ViewRenderer()?.Bind(u3dView));
            colliderCom     = (ViewCollider)(colliderCom?.Bind(u3dView) ?? new ViewCollider()?.Bind(u3dView));
            animatorCom     = (ViewAnimator)(animatorCom?.Bind(u3dView) ?? new ViewAnimator()?.Bind(u3dView));
            shaderEffectCom = (ViewShaderEffect)(shaderEffectCom?.Bind(u3dView) ?? new ViewShaderEffect()?.Bind(u3dView));

            Init();
        }