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