private void Start()
    {
        astronautMovement = GetComponent <Scr_AstronautMovement>();
        astronautStats    = GetComponent <Scr_AstronautStats>();
        cableVisuals      = playerShip.GetComponentInChildren <Scr_CableVisuals>();
        playerShipActions = playerShip.GetComponent <Scr_PlayerShipActions>();

        toolOnFloor     = null;
        emptyHands      = true;
        savedTimeToMine = timeToMine;
    }
示例#2
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;
    }