// Use this for initialization void Start() { position_yoko = GameObject.Find ("boss_position_yoko"); position_oku = GameObject.Find ("boss_position_oku"); manager = GameObject.Find("Manager").GetComponent<Manager_partB>();//ゲーム管理するスクリプトを取得 }
// Use this for initialization void Start() { manager = GameObject.Find("Manager").GetComponent<Manager_partB>();//ゲーム管理するスクリプトを取得 plyer = GameObject.FindWithTag("Player"); initial = this.transform.position; act =true; }
private AudioSource audio; //オーディオ #endregion Fields #region Methods // Use this for initialization void Start() { HP = MAX_HP; //ゲットコンポーネント r = GetComponent<Renderer>();//マテリアル用 manager = GameObject.Find ("Manager").GetComponent<Manager_partB>();//ゲームマネージャー audio = GameObject.Find("shot_rota").GetComponent<AudioSource>();//オーディオ }
// Use this for initialization void Start() { //ステージ取得 stage = PlayerPrefs.GetInt("Stage") + 1; MAX_HP = stage * boss_hp_start; HP = MAX_HP; //コンポーネントをゲットする manager = GameObject.Find ("Manager").GetComponent<Manager_partB>();//ゲームマネージャー audio = GameObject.Find("shot_rota").GetComponent<AudioSource>();//オーディオ }
// Use this for initialization void Start() { //objectを設定 plyer = GameObject.FindWithTag("Player"); // laser_mouse = GameObject.Find("Laser_mouse"); // laser_mouse_rot = GameObject.Find("Laser_mouse_rot"); maneger = GameObject.Find ("Manager").GetComponent<Manager_partB>(); efect_particle = efect.GetComponent<ParticleSystem>(); beam_particle = beam_efect.GetComponent<ParticleSystem>(); anim = this.GetComponent<Animator>(); }
// Use this for initialization void Start() { //objectを設定 plyer = GameObject.FindWithTag("Player"); maneger = GameObject.Find ("Manager").GetComponent<Manager_partB>(); boss_move = this.GetComponent<Boss_Move>(); anim = this.GetComponent<Animator>(); //hp = max_hp; //初期位置 //initial = this.transform.position; }
private AudioSource audio; //オーディオ #endregion Fields #region Methods // Use this for initialization void Start() { HP = MAX_HP; //ゲットコンポーネント r = GetComponent<Renderer>();//マテリアル用 boss = GameObject.Find ("baby").GetComponent<Boss>();//ボス manager = GameObject.Find ("Manager").GetComponent<Manager_partB>();//ゲームマネージャー audio = GameObject.Find("shot_rota").GetComponent<AudioSource>();//オーディオ //名前を数字に変換してこのオブジェクトのナンバーを取得 nam = int.Parse((gameObject.name.Replace("parte",""))); //シーン読み込みの時にフラグがたっていればこのオブジェクトを破壊する if(GameObject.Find("boss_manager").GetComponent<Boss_manager>().part[nam] == 1){ Destroy (this.gameObject); } }
// Use this for initialization void Start() { //プレイヤーを取得 player = GameObject.FindWithTag ("Player"); maneger = GameObject.Find ("Manager").GetComponent<Manager_partB>(); //count_numが最大番号になるまでくりかえす /* while(count_num != max_num){ //ミサイルを上から順に格納していく misail[count_num] = GameObject.Find("Missile" + (first_num + count_num)); count_num++; }*/ for(int i=1;i<=6;i++){ //ミサイルポジションを上から順に格納していく misail_position[i-1] = GameObject.Find("Missile_position" + (i)); } }
// Use this for initialization void Start() { shot_roat = GameObject.Find ("shot_roat");//銃口のオブジェクト取得 shot_mouse = GameObject.Find ("shot_mouse");//銃口のオブジェクト取得 manager = GameObject.Find("Manager").GetComponent<Manager_partB>();//ゲーム管理するスクリプトを取得 gun_con = this.GetComponent<Gun_Control>();//銃コントロール(仮) audio = GetComponent<AudioSource>(); //銃のか可動域のオブジェクトをセッティング mouse_p_px = GameObject.Find ("mouse_position_x"); mouse_p_nx = GameObject.Find ("mouse_position_-x"); }
// Use this for initialization void Start() { //オブジェクトの参照 shot_mouse = GameObject.Find ("shot_mouse");//銃口のオブジェクト取得 //必要なコンポーネントをゲットする manager = GameObject.Find("Manager").GetComponent<Manager_partB>();//ゲーム管理するスクリプトを取得 audio = GetComponent<AudioSource>();//オーディオ }
// Use this for initialization void Start() { stage = PlayerPrefs.GetInt ("Stage"); stage++; //コンポーネント mane = GameObject.Find ("Manager").GetComponent<Manager_partB>(); boss_p = this.GetComponent<Boss_Move>(); lerzer = this.GetComponent<Boss_Atack>(); panch = this.GetComponent<Boss_Panch>(); missile = GameObject.Find ("Missile_Main").GetComponent<Boss_Missile_Main>(); atack_point = GameObject.Find ("atack_point"); boss_wait_add = 30; anim = this.GetComponent<Animator>(); }
// Use this for initialization void Start() { shot_mouse = GameObject.Find ("shot_mouse");//銃口のオブジェクト取得 manager = GameObject.Find("Manager").GetComponent<Manager_partB>();//ゲーム管理するスクリプトを取得 audio = GetComponent<AudioSource>(); }