void Start() { ui_m = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); mineral_rb = GetComponent <Rigidbody2D>(); mineral_rb.AddForce(new Vector2(Random.Range(-strength_x, strength_x), Random.Range((strength_y - 100), strength_y)), ForceMode2D.Impulse); mineral_rb.MoveRotation(Random.Range(-strength_x, strength_x)); }
private void Start() { rb = GetComponent <Rigidbody2D>(); shipScr = GameObject.Find("obj_player_ship").GetComponent <ShipMovement>(); UIScr = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); oldGravity = rb.gravityScale; }
private void Start() { audio_emitter = GetComponent <AudioSource> (); rb = GetComponent <Rigidbody2D>(); ui_manager = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); isShipEnabled = true; }
private void Start() { shipScr = GameObject.Find("obj_player_ship").GetComponent <ShipMovement>(); uiScr = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); anim = GetComponent <Animator>(); oldDelay = delayToDeployEgg; }
void Start() { current_fuel = total_fuel; fuel_station_animator = this.GetComponent <Animator>(); uiScr = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); UpdateGauge(); }
private void Start() { var vignette = profile.vignette.settings; vignette.intensity = 0; profile.vignette.settings = vignette; uiScr = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); oldDelayDamage = delayDamage; }
private void Start() { ui_manager = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); audio_emitter = this.GetComponent <AudioSource> (); }
private void Start() { ui_m = GameObject.Find("Game Manager").GetComponent <ui_manager_script>(); rb = GetComponent <Rigidbody2D>(); rb.AddForce(transform.up * spawnForce); }