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