Пример #1
0
    //桌布
    public void OnColorClick(Toggle toggle, bool ison)
    {
        //Debug.Log(toggle.name  + (ison ? "On" : "Off"));
        if (ison)
        {
            AudioMgr.Instance.SoundPlay("btnSelect", 1f, 2);
            switch (toggle.name)
            {
            case "blue":
                PlayerPrefs.SetString("TableColor", "blue");
                RoomEvent.DoChangeTableColor();
                break;

            case "green":
                PlayerPrefs.SetString("TableColor", "green");
                RoomEvent.DoChangeTableColor();
                break;

            default:
                break;
            }
        }
    }