Example #1
0
    public void Launch(ShipsDSID shipID, int institutionLevel, float targetY)
    {
        fireObject.SetActive(true);

        AssignShipSrite(shipID);

        shipFlier = new ShipFlier(transform.position.y, targetY, timeToTarget, movementCurve);
    }
Example #2
0
    public void Land(Trip trip, float targetY)
    {
        tripToEnd = trip;
        landing   = true;

        var shipSprite = Resources.Load <Sprite>($"Sprites/Ships/{trip.ship.shipType}");

        shipSpriteRend.sprite = shipSprite;

        boosterSpriteRend.enabled = false;

        shipFlier = new ShipFlier(transform.position.y, targetY, timeToTarget, landingCurve);
    }