Пример #1
0
    void OnClickbtn(ButtonScript obj, object args, int param1, int param2)
    {
        if (param1 == 0)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else
        if (param1 == 1)
        {
            MainbabyUI.SwithShowMe();
        }
        else
        if (param1 == 2)
        {
        }
        else
        if (param1 == 3)
        {
            EmployessControlUI.SwithShowMe(3);
        }
        else
        if (param1 == 4)
        {
            EmployessControlUI.SwithShowMe();
        }

        //Hide ();
    }
Пример #2
0
    void OnMainClick(ButtonScript obj, object args, int param1, int param2)
    {
        this.gameObject.SetActive(false);
        switch ((RaiseType)param1)
        {
        case RaiseType.RT_RaiseBaby:
            MainbabyUI.SwithShowMe();
            break;

        case RaiseType.RT_RaisePlayer:
            PlayerPropertyUI.SwithShowMe();
            break;

        case RaiseType.RT_RaiseSkill:
            MainbabySkillNpc.SwithShowMe();
            break;

        case RaiseType.RT_RaiseEquip:
            CompoundUI.SwithShowMe(true);
            break;

        case RaiseType.RT_PartnerCollect:
            EmployessControlUI.SwithShowMe();
            break;

        case RaiseType.RT_PartnerBattle:
            EmployessControlUI.SwithShowMe(2);
            break;

        case RaiseType.RT_PartnerRaise:
            EmployessControlUI.SwithShowMe(3);
            break;

        case RaiseType.RT_PartnerEquip:
            EmployessControlUI.SwithShowMe(3);
            break;

        default:
            break;
        }
    }
Пример #3
0
    private void OnGoBtn(ButtonScript obj, object args, int param1, int param2)
    {
        if (Cheats == null)
        {
            return;
        }
        if (!string.IsNullOrEmpty(_cheatsData.find_))
        {
            GameManager.Instance.ParseNavMeshInfo(_cheatsData.find_);
            return;
        }


        if (Cheats.uiType_ == HelpRaiseType.HRT_None)
        {
            return;
        }

        if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerAddProp)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerResetProp)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerAddEvolve)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyAddProp)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyReset)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyStr)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabySkill)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyChange)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_SkillAuto)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Skill))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            SkillViewUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_SkillItem)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Skill))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            SkillViewUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EquipCompound)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            CompoundUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EquipGem)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            CompoundUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeBuy)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeePos)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(2);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeSkill)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(1);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeEquip)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(3);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeEvolve)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(3);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_MagicLevelUp)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_MagicItem))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            magicItemUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_MagicEvolve)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_MagicItem))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            magicItemUI.SwithShowMe();
        }
    }
Пример #4
0
 private void OnOpenPlayer(GameObject sender)
 {
     PlayerPropertyUI.ShowMe();
     gameObject.SetActive(false);
 }