Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 private void Start()
 {
     audio_emitter = GetComponent <AudioSource> ();
     rb            = GetComponent <Rigidbody2D>();
     ui_manager    = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     isShipEnabled = true;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 void Start()
 {
     current_fuel          = total_fuel;
     fuel_station_animator = this.GetComponent <Animator>();
     uiScr = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     UpdateGauge();
 }
Ejemplo n.º 6
0
    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;
    }
Ejemplo n.º 7
0
 private void Start()
 {
     ui_manager    = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     audio_emitter = this.GetComponent <AudioSource> ();
 }
Ejemplo n.º 8
0
 private void Start()
 {
     ui_m = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     rb   = GetComponent <Rigidbody2D>();
     rb.AddForce(transform.up * spawnForce);
 }