Example #1
0
    private void OnClickappoint(ButtonScript obj, object args, int param1, int param2)
    {
        gjob = (GuildJob)Enum.ToObject(typeof(GuildJob), param1);

        MessageBoxUI.ShowMe(LanguageManager.instance.GetValue("renming").Replace("{n}", Member.roleName_).Replace("(n1)", LanguageManager.instance.GetValue(param1.ToString())), () => {
            if (gjob == GuildJob.GJ_VicePremier && GuildSystem.GetJopNumber(GuildJob.GJ_VicePremier) == 2)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("reminfuzuzhang"));
                return;
            }
            else if (gjob == GuildJob.GJ_SecretaryHead && GuildSystem.GetJopNumber(GuildJob.GJ_SecretaryHead) == 4)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("renmingzhanglao"));
                return;
            }
            else
            if (gjob == GuildJob.GJ_Minister && GuildSystem.GetJopNumber(GuildJob.GJ_Minister) == 12)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("renmingjingying"));
                return;
            }
            NetConnection.Instance.changeMemberPosition((int)Member.roleId_, gjob);
        }, false, () => {
            gameObject.SetActive(false);
        });
        gameObject.SetActive(false);
//		changeObj.SetActive (true);
//		AppointTips atips = changeObj.GetComponent<AppointTips>();
//		atips.Member = Member;
//		gameObject.SetActive (false);
    }