Example #1
0
    // Use this for initialization
    void Start()
    {
        load_cnt = Set_Load_Cnt();
        stage_lv = GameStartText.Set_Stage_Lv();
        //move_diff_x = Skes_speed();

        /*
         * if (load_cnt == 0)
         * {
         *  move_diff_x = 0;
         *  load_cnt = 1;
         * }
         * if (load_cnt == 1)
         * {
         *  move_diff_x = Skes_speed();
         * }
         */
        move_diff_x       += stage_lv * 0.0005f;
        move_x            -= move_diff_x;
        move_left_x        = move_x;
        c_wait             = GameObject.Find("c_wait");            //c_waitをオブジェクトの名前から取得して変数に格納する
        script             = c_wait.GetComponent <Move_Endless>(); //c_waitの中にあるmoveを取得して変数に格納する
        sound01            = GetComponent <AudioSource>();
        MainSpriteRenderer = gameObject.GetComponent <SpriteRenderer>();
        debris_time        = 0;
        count       = 0;
        skill       = PlayerPrefs.GetInt("yukou_button_number", 0);
        lv          = PlayerPrefs.GetInt("lv_6", 1);
        point_count = 0;
    }
Example #2
0
    // ハイスコア
    // Use this for initialization
    void Start()
    {
        score    = Score_Endless.getScore();
        stage_lv = GameStartText.Set_Stage_Lv();
        Not_Network_dialog.SetActive(false);
        time = 0;
        One  = true;

        text_f   = false;
        cnt      = 0;
        time2    = 0;
        coin_num = PlayerPrefs.GetInt("coin_num", 0);
        PlayerPrefs.SetInt("Stage_Lv", stage_lv);
        //PlayerPrefs.SetInt("Score", 0);
        PlayerPrefs.Save();
        //score_2 = Score.getScore();
        //score = 1450;   //デバック用
        score_zero = 0;
        coin_zero  = 0;
        canvas.SetActive(false);
        Massage_Box.SetActive(false);
        next_text.SetActive(false);
        button_f   = false;
        next_scene = false;
        //AdMobManager.instance.DestroyBanner();
        //AdMobManager.instance.RequestInterstitial();
        //Scene_name = PlayerPrefs.GetString("Scene_name");
        //bairitu = 10;
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        load_cnt       = Set_Load_Cnt();
        stage_lv       = GameStartText.Set_Stage_Lv();
        skeleton_count = Skel4_num();

        /*
         * if (load_cnt == 0)
         * {
         *  skeleton_count = 10;
         *  load_cnt = 1;
         * }
         * if (load_cnt == 1)
         * {
         *  skeleton_count = Skel4_num();
         * }
         */
        skeleton_count += stage_lv * 0.1;
        GameStart       = GameObject.Find("GameStart");
        script          = GameStart.GetComponent <GameStartText>();
        warning_f1      = false;
        cnt             = 0;
        InvokeRepeating("SpawnObj", 0.1f, interval);
        //d_016 = GameObject.Find("d_016");
        //script2 = d_016.GetComponent<Boss_Endless>();
        Endless_f1 = false;
    }
Example #4
0
 // Use this for initialization
 void Start()
 {
     Warning      = GameObject.Find("Warning");
     Max_Range_Lv = GameStartText.Set_Stage_Lv();
     //script1 = Warning.GetComponent<Warning3>();
     InvokeRepeating("_Bless", 0.1f, interval);
     time    = 0;
     flash_f = false;
     Bless.SetActive(false);
     d_f = Boss_Endless2.Set_dragon_posOK();
     //d_016_1 = GameObject.Find("d_016");
     //script2 = d_016_1.GetComponent<Boss_Endless>();
 }