public virtual ViewBaseClass Bind(UnityView u3dView) { Clear(); unityView = u3dView; return(this); }
public static IView CreateView(GameEntity entity) { var view = new UnityView(); view.Create(entity); return(view); }
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(); }