コード例 #1
0
    public void Press(int cha)
    {
        GameObject        go = GameObject.Find("local_cs");
        CharacterSelector cs = go.GetComponent <CharacterSelector>();

        if (cs != null)
        {
            cs.CmdChooseCharacter(cha);

            foreach (ButtonDeactivator b in buttons_to_disable)
            {
                b.SetActive(false);
            }
            foreach (ButtonDeactivator b in buttons_to_enable)
            {
                b.SetActive(true);
            }
        }
    }