protected void Start()
 {
     if (world == null)
     {
         world = WorldConsumerUtility.FindWorld(this);
     }
     this.DisableAndThrowOnUnassignedReference(world, "The DynamicElementWrapperUsingFixedUpdate component requires a reference to a World component.");
 }
Ejemplo n.º 2
0
        protected new void Start()
        {
            base.Start();

            if (world == null)
            {
                world = WorldConsumerUtility.FindWorld(this);
            }
            this.DisableAndThrowOnUnassignedReference(world, "The RigidbodyElement component requires a reference to a World component.");
        }
Ejemplo n.º 3
0
        protected void Start()
        {
            if (world == null)
            {
                world = WorldConsumerUtility.FindWorld(this);
            }
            this.DisableAndThrowOnUnassignedReference(world, "The Rigidbody2DElementWrapper component requires a reference to a World component.");

            _rigidbody = GetComponent <Rigidbody2D>();
        }
Ejemplo n.º 4
0
        protected void Start()
        {
            if (world == null)
            {
                world = WorldConsumerUtility.FindWorld(this);
            }
            this.DisableAndThrowOnUnassignedReference(world, "The Viewport component requires a reference to a World component.");

            RecalculateVisibleGhostRegions();
        }
Ejemplo n.º 5
0
        protected void Start()
        {
            if (world == null)
            {
                world = WorldConsumerUtility.FindWorld(this);
            }
            this.DisableAndThrowOnUnassignedReference(world, "The ConditionalWrappingUsingFixedUpdate component requires a reference to a World component.");

            if (boundedElement == null)
            {
                boundedElement = GetComponent <BoundedElement>();
            }
            this.DisableAndThrowOnUnassignedReference(boundedElement, "The ConditionalWrappingUsingFixedUpdate component requires a reference to an BoundedElement component.");
        }