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