コード例 #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));
 }
コード例 #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;
 }
コード例 #3
0
 private void Start()
 {
     audio_emitter = GetComponent <AudioSource> ();
     rb            = GetComponent <Rigidbody2D>();
     ui_manager    = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     isShipEnabled = true;
 }
コード例 #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;
 }
コード例 #5
0
 void Start()
 {
     current_fuel          = total_fuel;
     fuel_station_animator = this.GetComponent <Animator>();
     uiScr = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     UpdateGauge();
 }
コード例 #6
0
ファイル: ToxicCloud.cs プロジェクト: PatioToms/Cosmic-Lander
    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;
    }
コード例 #7
0
ファイル: ShipMagnet.cs プロジェクト: PatioToms/Cosmic-Lander
 private void Start()
 {
     ui_manager    = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     audio_emitter = this.GetComponent <AudioSource> ();
 }
コード例 #8
0
 private void Start()
 {
     ui_m = GameObject.Find("Game Manager").GetComponent <ui_manager_script>();
     rb   = GetComponent <Rigidbody2D>();
     rb.AddForce(transform.up * spawnForce);
 }