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 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() { 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; }
private void Start() { playerShipStats = GameObject.Find("PlayerShip").GetComponent <Scr_PlayerShipStats>(); }
private void Start() { playerShipStats = GetComponentInParent <Scr_PlayerShipStats>(); playerShipMovement = GetComponentInParent <Scr_PlayerShipMovement>(); }