private void Start()
    {
        minimapCamera      = GetComponent <Camera>();
        playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();

        currentTarget = playerShipMovement.currentPlanet;
    }
    private void Start()
    {
        playerShipMovement = playership.GetComponent <Scr_PlayerShipMovement>();
        lineRenderer       = GetComponent <LineRenderer>();

        disablingDelaySaved = disablingDelay;
        activateDelaySaved  = activateDelay;
    }
Exemplo n.º 3
0
    private void Start()
    {
        playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();
        playerShipStats    = playerShip.GetComponent <Scr_PlayerShipStats>();

        anim_AstronautInterface.SetBool("Show", true);
        anim_FadeImage.SetBool("Fade", true);
    }
    private void Awake()
    {
        playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();

        asteroids          = new List <Scr_AsteroidClass>();
        planets            = new List <Scr_PlanetClass>();
        asteroidIndicators = new List <GameObject>();
        planetIndicators   = new List <GameObject>();
    }
Exemplo n.º 5
0
    private void Start()
    {
        playerShipMovement = GameObject.Find("PlayerShip").GetComponent <Scr_PlayerShipMovement>();
        rb            = GetComponent <Rigidbody2D>();
        lootParticles = GetComponentInChildren <ParticleSystem>();

        emulatePhysics = true;
        onHands        = false;

        ResourceTypeChoice();
        InitialImpulse();
    }
Exemplo n.º 6
0
    private void Start()
    {
        playerShipMovement   = GetComponent <Scr_PlayerShipMovement>();
        playerShipEffects    = GetComponent <Scr_PlayerShipEffects>();
        playerShipPrediction = GetComponent <Scr_PlayerShipPrediction>();
        rb = GetComponent <Rigidbody2D>();

        fuelSlider.maxValue     = maxFuel;
        fuelTankSlider.maxValue = maxFuel;
        shieldSlider.maxValue   = maxShield;

        level = 0;
    }
Exemplo n.º 7
0
    private void Start()
    {
        astronaut      = GameObject.Find("Astronaut");
        astronautSpot  = GameObject.Find("AstronautSpot").GetComponent <Transform>();
        playerShip     = GameObject.Find("PlayerShip");
        playerShipSpot = GameObject.Find("PlayerShipSpot").GetComponent <Transform>();

        anim = GetComponentInChildren <Animator>();
        playerShipActions  = playerShip.GetComponent <Scr_PlayerShipActions>();
        playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();

        savedDelay = boardingDelay;
        target     = playerShipSpot;
    }
Exemplo n.º 8
0
    public void Start()
    {
        astronautRb        = GetComponent <Rigidbody2D>();
        playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();
        playerShipActions  = playerShip.GetComponent <Scr_PlayerShipActions>();
        astronautStats     = GetComponent <Scr_AstronautStats>();
        astronautEffects   = GetComponent <Scr_AstronautEffects>();

        savedTimeCharge = timeCharge;

        charge          = true;
        unlockedJetpack = false;
        planetRotation  = new Quaternion(0, 0, 0, 0);

        Calculations();
        baseDistanceFromCenterToGround = currentDistanceFromCenterToGround;
        canMove = true;
    }
Exemplo n.º 9
0
    private void Start()
    {
        playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();
        playerShipActions  = playerShip.GetComponent <Scr_PlayerShipActions>();
        mainCamera         = GetComponent <Camera>();
        desiredUp          = transform.up;

        if (playerShipMovement.currentPlanet != null)
        {
            zoomInPlanet = zoomInPlanetRatio * playerShipMovement.currentPlanet.GetComponent <Scr_Planet>().planetSize;
        }

        mainCamera.orthographicSize = zoomInPlanet;
        smoothRotation = true;

        shakeInstance = CameraShaker.Instance.StartShake(magnitude, roughness, fadeOutTime);
        shakeInstance.StartFadeOut(0);
        shakeInstance.DeleteOnInactive = true;
    }
Exemplo n.º 10
0
    private void Start()
    {
        playerShipMovement   = GetComponent <Scr_PlayerShipMovement>();
        playerShipPrediction = GetComponent <Scr_PlayerShipPrediction>();
        cableVisuals         = GetComponentInChildren <Scr_CableVisuals>();
        playerShipProxCheck  = GetComponentInChildren <Scr_PlayerShipProxCheck>();
        playerShipRb         = GetComponent <Rigidbody2D>();
        astronautRb          = astronaut.GetComponent <Rigidbody2D>();

        unlockedMiningLaser = false;
        unlockedSpaceWalk   = false;
        canInputAgain       = true;

        deployDelaySaved      = deployDelay;
        miningSlider.maxValue = maxPower;

        Scr_PlayerData.checkpointPlanet             = gameManager.initialPlanet.transform;
        Scr_PlayerData.checkpointPlayershipPosition = transform.localPosition;
        Scr_PlayerData.checkpointPlayershipRotation = transform.localRotation;
        Scr_PlayerData.checkpointFuel   = GetComponent <Scr_PlayerShipStats>().currentFuel;
        Scr_PlayerData.checkpointShield = GetComponent <Scr_PlayerShipStats>().currentShield;
    }
Exemplo n.º 11
0
 private void Start()
 {
     playerShipMovement = GetComponent <Scr_PlayerShipMovement>();
 }
 private void Start()
 {
     playerShipMovement = playerShip.GetComponent <Scr_PlayerShipMovement>();
     temporaryColor     = atmosphereImage.color;
 }
 private void Start()
 {
     playerShipStats    = GetComponentInParent <Scr_PlayerShipStats>();
     playerShipMovement = GetComponentInParent <Scr_PlayerShipMovement>();
 }