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; }
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; }