コード例 #1
0
    public void EnableBackButton(eScreen screen, bool enable)
    {
        if (screen == eScreen.MAIN_MENU)
        {
            return;
        }

        Transform t = m_Screens[(int)screen].transform.Find("Back Button");
        Button    b = t.GetComponent <Button>();

        b.enabled = enable;

        ButtonScript bs = t.GetComponent <ButtonScript>();

        if (enable)
        {
            bs.SetEnable();
        }
        else
        {
            bs.SetDisable();
        }
    }