Beispiel #1
0
    private void Start()
    {
        //测试ui
        UIMgr.GetInstance().ShowPanel("LoginPanel", Ui_Type.mid);
        testtest t = new testtest();

        MonoMgr.GetInstance().AddUpdateListener(t.update1);

        //AudioMgr.GetInstance().PlayBKMusic("0204");
        AudioMgr.GetInstance().PlaySound("SwordSwing", false, (o) =>
        {
            Debug.Log("1256789");
        });
    }
Beispiel #2
0
    void WriteArray(string pathname)
    {
        string   fullpath = g_savepath + pathname;
        testtest tt       = new testtest();

        tt.testarray = startarray;
        string json = JsonUtility.ToJson(tt);

        if (Directory.Exists(fullpath))
        {
            File.Delete(fullpath);
        }

        File.WriteAllText(fullpath, json);
    }