private void Start() { playerShipActions = playerShip.GetComponent <Scr_PlayerShipActions>(); messageText = GetComponentInChildren <TextMeshProUGUI>(); asteroidStats = GetComponent <Scr_AsteroidStats>(); move = true; messageText.text = message; lastFrameRotationPivot = planet.transform.position; }
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; }
private void Start() { playerShipActions = playerShip.GetComponent <Scr_PlayerShipActions>(); playerShipStats = playerShip.GetComponent <Scr_PlayerShipStats>(); asteroidBehaviour = GetComponent <Scr_AsteroidBehaviour>(); resourceAmount = 100; initialScale = asteroidVisuals.gameObject.transform.localScale; initialResourceZone = resourceZone; initialColliderSize = asteroidCollider.transform.localScale.x; resourceZoneMultiplier = (resourceZone - resistentZone) / 10; }
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; }
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; }
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; }
private void Start() { rb = GetComponent <Rigidbody2D>(); playerShipStats = GetComponent <Scr_PlayerShipStats>(); playerShipEffects = GetComponent <Scr_PlayerShipEffects>(); playerShipActions = GetComponent <Scr_PlayerShipActions>(); playerShipPrediction = GetComponent <Scr_PlayerShipPrediction>(); playerShipDeathCheck = GetComponentInChildren <Scr_PlayerShipDeathCheck>(); canControlTimerSaved = canControlTimer; maxSpeedSaved = maxSpeed; limitSlider.maxValue = maxSpeedSaved; speedSlider.maxValue = maxSpeedSaved; messageText.text = ""; canControlShip = false; onGround = true; checkingDistance = 100f; initialBulletTime = bulletTime; savedTimeToTakeOff = timeToTakeOff; initialZ = transform.position.z; }