Exemple #1
0
        protected new void Start()
        {
            base.Start();

            if (viewport == null)
            {
                viewport = ViewportConsumerUtility.FindViewport(this);
            }
            this.DisableAndThrowOnUnassignedReference(viewport, "The SpriteElement component requires a reference to a Viewport component.");
        }
Exemple #2
0
        protected void Start()
        {
            if (viewport == null)
            {
                viewport = ViewportConsumerUtility.FindViewport(this);
            }
            this.DisableAndThrowOnUnassignedReference(viewport, "The MeshElement component requires a reference to a Viewport component.");

            if (_bounds == null)
            {
                RefreshBounds();
            }
        }