protected void Start()
 {
     if (world == null)
     {
         world = WorldConsumerUtility.FindWorld(this);
     }
     this.DisableAndThrowOnUnassignedReference(world, "The DynamicElementWrapperUsingFixedUpdate component requires a reference to a World component.");
 }
예제 #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.");
        }
예제 #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>();
        }
예제 #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();
        }
예제 #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.");
        }