Exemplo n.º 1
0
    /// <summary>
    /// 終了時処理
    /// </summary>
    public void time_up()
    {
        Sound_maneger.play_finish_se();
        Instantiate(time_up_obj, new Vector3(0f, 3.5f, -4f), Quaternion.identity);
        touch_input.GetComponent <touch_input>().enabled = false;
        GameObject    finish        = Instantiate(finish_status_pre) as GameObject; //finish_statusを作る
        finish_status finish_status = finish.GetComponent <finish_status>();        //スクリプトを探す

        finish_status.finish_state(score, now_level);                               //状態をつっこむ
        Sound_maneger.play_bgm_stop();
        StartCoroutine(endwait());
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     admob_obj = GameObject.Find("admob");
     admob     = admob_obj.GetComponent <Admob>();
     admob.showBannerAd(2);
     finish        = GameObject.Find("finish_status(Clone)");
     finish_status = finish.GetComponent <finish_status>();
     // d_w = GameObject.Find("data_warehose");
     //Destroy(d_w);
     admob.showInterstitialAd();
     disp_result();
 }