void OnMouseDown( )
    {
        selectStage stage = GameObject.Find("stage_info").GetComponent <selectStage>( );

        Time.timeScale = 0;
        SceneManager.LoadScene("character");
        SceneManager.LoadScene(stage.playStage(), LoadSceneMode.Additive);
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        comboData   combo = new comboData( );
        selectStage stage = GameObject.Find("stage_info").GetComponent <selectStage>();
        string      PATH  = combo.getPath(stage.getStageNum( ));

        byte [] datas      = File.ReadAllBytes(PATH);
        bool    new_record = datas [0] == 1;

        if (new_record)
        {
            GameObject.Find("new_record").SetActive(true);
            GameObject.Find("sound").GetComponent <sound> ().playSE("new_record");
        }
        transform.Find("this_game_result").GetComponent <drawNumSprite> ( ).Value = datas[1];
        for (int i = 0; i < 5; i++)
        {
            Transform child    = transform.Find("ranking");
            string    obj_name = "ranking" + i;
            child.Find(obj_name).GetComponent <drawNumSprite> ( ).Value = datas[i + 2];
        }
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        selectStage stage = GameObject.Find("stage_info").GetComponent <selectStage>();

        _back[stage.getStageNum()].SetActive(true);
    }