public void BeginRenderingCaptureVisual(IAutoLandingSystem landingSystem) { this.shipPositionLocator = landingSystem; // Initialise visual position ShrinkCaptureCircle(); PositionCaptureLine(); captureCircle.gameObject.SetActive(true); captureLine.gameObject.SetActive(true); }
private void OnTriggerEnter2D(Collider2D collision) { if (!collision.CompareTag("Player")) { return; } if (collision.GetComponent <IProjectile>() != null) { return; } autoLandingSystem = collision.gameObject.GetComponent <IAutoLandingSystem>(); shipLandingSystem = collision.gameObject.GetComponent <IShipLandingSystem>(); platform.LoadPlayerCabin(collision.gameObject.GetComponent <IPlayerCabin>()); TransitionState(new TrackingState()); }