Example #1
0
    private void OnClickChindItem(ButtonScript obj, object args, int param1, int param2)
    {
        CompoundSkillCellUI cell = obj.GetComponent <CompoundSkillCellUI> ();

        //if (_selectChindObj == obj.gameObject)
        //return;
        if (_selectChindObj == null)
        {
            _selectChindObj = obj.gameObject;
            obj.GetComponent <CompoundSkillCellUI> ().arrow.gameObject.SetActive(true);
        }
        else
        {
            _selectChindObj.GetComponent <CompoundSkillCellUI> ().arrow.gameObject.SetActive(false);
            _selectChindObj = obj.gameObject;
            _selectChindObj.GetComponent <CompoundSkillCellUI> ().arrow.gameObject.SetActive(true);
        }

        if (cell == null)
        {
            return;
        }
        updateCompoundInfo(cell);
        updateCompoundPropInfo(cell);
    }
Example #2
0
    public void OnFriendCell(ButtonScript obj, object args, int param1, int param2)
    {
        obj.GetComponent <UISprite>().MarkOff();

        //recomPane.gameObject.SetActive (false);
        blackPane.gameObject.SetActive(false);
        chatLisPane.gameObject.SetActive(true);
        if (_selectFriendBtn != null)
        {
            _selectFriendBtn.GetComponent <UISprite> ().spriteName = "jn_jinlan";
        }
        _selectFriendBtn = obj.gameObject;
        _selectFriendBtn.GetComponent <UISprite> ().spriteName = "jn_jinlanliang";
        if (obj.GetComponent <FriendItem> ().ContactInfo == null)
        {
            return;
        }
        _selectFriend = obj.GetComponent <FriendItem> ().ContactInfo;
        if (FriendSystem.Instance().NoChatDict.ContainsKey(_selectFriend.name_))
        {
            offTabBtn.GetComponentInChildren <UISprite>().MarkOff();
            FriendSystem.Instance().NoChatDict.Remove(_selectFriend.name_);
        }
        //if(obj.GetComponent<FriendItem> ().red.gameObject.activeSelf)
        //{
        //obj.GetComponent<FriendItem> ().red.gameObject.SetActive(false);
        UpdateChatList(_selectFriend);
        //}
    }
Example #3
0
    private void OnClicMail(ButtonScript obj, object args, int param1, int param2)
    {
        COM_Mail mail = obj.GetComponent <mailCellUI> ().Mail;

        if (mail == null)
        {
            return;
        }

        if (!delMailBtn.gameObject.activeSelf)
        {
            delMailBtn.gameObject.SetActive(true);
        }
        if (!mail.isRead_)
        {
            obj.GetComponent <mailCellUI>().icon.spriteName = "dakaixin";
        }

        _selectMail  = mail;
        mail.isRead_ = true;
        NetConnection.Instance.readMail(_selectMail.mailId_);
        rightImg.gameObject.SetActive(true);

        for (int k = 0; k < mailCellList.Count; k++)
        {
            mailCellList[k].GetComponent <mailCellUI> ().back.gameObject.SetActive(false);
        }
        obj.GetComponent <mailCellUI> ().back.gameObject.SetActive(true);


        updateMailInfo(mail);
    }
Example #4
0
 private void OnClickMagicCell(ButtonScript obj, object args, int param1, int param2)
 {
     for (int i = 0; i < changeCellList.Count; i++)
     {
         changeCellList[i].selectImg.gameObject.SetActive(false);
     }
     obj.GetComponent <MagicChangeCellUI> ().selectImg.gameObject.SetActive(true);
     _seletData             = obj.GetComponent <MagicChangeCellUI>().ArtifactData;
     needZhuanMoneyLab.text = obj.GetComponent <MagicChangeCellUI> ().ArtifactData._Diamonds.ToString();
 }
Example #5
0
 private void OnClickSkill(ButtonScript obj, object args, int param1, int param2)
 {
     if (selectObj != null)
     {
         selectObj.back.gameObject.SetActive(false);
     }
     equipInfoUI.gameObject.SetActive(false);
     skillInfoUI.Skill = obj.GetComponent <HelpEquipCellUI> ().Skill;
     selectObj         = obj.GetComponent <HelpEquipCellUI>();
     selectObj.back.gameObject.SetActive(true);
 }
Example #6
0
 void freeButtons()
 {
     button1.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None;
     button2.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None;
     button3.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None;
     button1.GetComponent <Rigidbody>().AddForce(getExplosionVector() * 20.0f);
     button2.GetComponent <Rigidbody>().AddForce(getExplosionVector() * 20.0f);
     button3.GetComponent <Rigidbody>().AddForce(getExplosionVector() * 20.0f);
     button1.GetComponent <Rigidbody>().AddTorque(getExplosionVector() * 10.0f);
     button2.GetComponent <Rigidbody>().AddTorque(getExplosionVector() * 10.0f);
     button3.GetComponent <Rigidbody>().AddTorque(getExplosionVector() * 10.0f);
 }
Example #7
0
    private void OnEmployeeCell(ButtonScript obj, object args, int param1, int param2)
    {
        EmployeeCellUI cell = obj.GetComponent <EmployeeCellUI> ();

        if (cell == null || cell.Employee == null)
        {
            return;
        }

        if (selectObj == null)
        {
            selectObj = obj.gameObject;
            selectObj.transform.FindChild("select").gameObject.SetActive(true);
        }
        else if (selectObj != obj.gameObject)
        {
            selectObj.transform.FindChild("select").gameObject.SetActive(false);
        }

        Employee employee = cell.Employee;

        if (employee == null)
        {
            return;
        }
        employee = GamePlayer.Instance.GetEmployeeById(employee.InstId);
        EmployessSystem.instance.CurEmployee = employee;
        EmployeeListUI.ShowMe();
    }
Example #8
0
    private void OnClickDeputyToggle(ButtonScript obj, object args, int param1, int param2)
    {
        UIToggle tog = obj.GetComponent <UIToggle> ();

        RadioToggle(tog);
        gjob = GuildJob.GJ_VicePremier;
    }
Example #9
0
    private void buttonClick(ButtonScript obj, object args, int param1, int param2)
    {
        babyName = obj.name;
        MainBabyListCell lCell = obj.GetComponent <MainBabyListCell>();

        if (curCell != null)
        {
            curCell.backSp.spriteName = "zd_chongwukuang";
        }

        int[] ids = { GamePlayer.Instance.babies_list_[param1].InstId, GamePlayer.Instance.babies_list_[param1].GetIprop(PropertyType.PT_AssetId) };
        CrtSelectIdx = param1;

        curCell = lCell;
        lCell.backSp.spriteName = "zd_chongwukuangxuanz";
        if (asssid != ids[1])
        {
            if (asssid != 0 && babyObj != null)
            {
                DestroyBaby((ENTITY_ID)asssid, true, babyObj);
            }
        }


        if (MainbabyState.babyInfo != null)
        {
            MainbabyState.babyInfo(ids);
        }

        MainbabyProperty.idss = ids;
        int uId    = ids[0];
        int asseId = ids[1];

        asssid = asseId;

        GameManager.Instance.GetActorClone((ENTITY_ID)asseId, (ENTITY_ID)0, EntityType.ET_Baby, AssetLoadCallBack, new ParamData(uId, asseId), "UI");
        HeadIconLoader.Instance.LoadIcon(BabyData.GetData(GamePlayer.Instance.GetBabyInst(ids[0]).GetIprop(PropertyType.PT_TableId))._RaceIcon, modelRace_);
        raceLabel.text = LanguageManager.instance.GetValue(BabyData.GetData(GamePlayer.Instance.GetBabyInst(ids[0]).GetIprop(PropertyType.PT_TableId))._RaceType.ToString());
        if (!_icons.Contains(BabyData.GetData(GamePlayer.Instance.GetBabyInst(ids[0]).GetIprop(PropertyType.PT_TableId))._RaceIcon))
        {
            _icons.Add(BabyData.GetData(GamePlayer.Instance.GetBabyInst(ids[0]).GetIprop(PropertyType.PT_TableId))._RaceIcon);
        }

        if (MainbabyProperty.BabyProperty != null)
        {
            MainbabyProperty.BabyProperty(uId);
        }
        if (MainbabyReductionUI.RefreshGrowingUpOk != null)
        {
            MainbabyReductionUI.RefreshGrowingUpOk(ids[0]);
        }
        if (Mainbabystrengthen.RefreshstrengthenOk != null)
        {
            Mainbabystrengthen.RefreshstrengthenOk(ids[0]);
        }
        if (MainbabyListUI.UpdateBabyMarkOnOk != null)
        {
            MainbabyListUI.UpdateBabyMarkOnOk(uId);
        }
    }
Example #10
0
    private void OnClickmainToggle(ButtonScript obj, object args, int param1, int param2)
    {
        UIToggle tog = obj.GetComponent <UIToggle> ();

        RadioToggle(tog);
        gjob = GuildJob.GJ_SecretaryHead;
    }
Example #11
0
    void OnClickBtn(ButtonScript obj, object args, int param1, int param2)
    {
        SkillInfo    sinfo = infoObj.GetComponent <SkillInfo>();
        LearningCell lCell = obj.GetComponent <LearningCell>();

        if (_curLearningCell != null)
        {
            _curLearningCell.raSp.gameObject.SetActive(false);
        }
        if (SkillInfo.SetBeginState != null)
        {
            if (_profData.getSkilMaxLevel(lCell.SkpData._Id) == 0)
            {
                SkillInfo.SetBeginState(false);
            }
            else
            {
                SkillInfo.SetBeginState(true);
            }
        }
        _curLearningCell = lCell;
        lCell.raSp.gameObject.SetActive(true);

        sinfo.SkpData = lCell.SkpData;

        GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_MainLearningOneSkillClick);
    }
Example #12
0
    private void OnEmployeeCell(ButtonScript obj, object args, int param1, int param2)
    {
        EmployeeCellUI cell = obj.GetComponent <EmployeeCellUI> ();

        if (cell == null || cell.Employee == null)
        {
            return;
        }
        if (selectObj != null)
        {
            selectObj.transform.FindChild("red").GetComponent <UISprite>().gameObject.SetActive(false);
        }
        selectObj = obj.gameObject;
        _fireEmployees.Clear();
        Employee employee = GamePlayer.Instance.GetEmployeeById(cell.Employee.InstId);

        if (_fireEmployees.IndexOf((uint)cell.Employee.InstId) < 0)
        {
            obj.transform.FindChild("red").GetComponent <UISprite>().gameObject.SetActive(true);
            _fireEmployees.Add((uint)employee.InstId);
        }
        else
        {
            obj.transform.FindChild("red").GetComponent <UISprite>().gameObject.SetActive(false);
            _fireEmployees.Remove((uint)employee.InstId);
        }
    }
Example #13
0
 public void AddToAvailable(GameObject buttonPrefab, Transform buttonParent, Transform towersParent)
 {
     this.towersParent = towersParent;
     button            = Instantiate(buttonPrefab, buttonParent).GetComponent <ButtonScript>();
     button.GetComponent <Image>().sprite        = sprite;
     button.GetComponentInChildren <Text>().text = tower.name;
 }
Example #14
0
    private void OnEmployeeCell(ButtonScript obj, object args, int param1, int param2)
    {
        EmployeeCellUI cell = obj.GetComponent <EmployeeCellUI> ();

        if (cell == null || cell.Employee == null)
        {
            return;
        }

        if (EmployeeTaskSystem.instance.IsTaskEmp(cell.Employee.InstId))
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("huanbanrenwuzhong"));
            return;
        }

        Employee employee = GamePlayer.Instance.GetEmployeeById(cell.Employee.InstId);

        if (_fireEmployees.IndexOf((uint)cell.Employee.InstId) < 0)
        {
            obj.transform.FindChild("red").GetComponent <UISprite>().gameObject.SetActive(true);
            _fireEmployees.Add((uint)employee.InstId);
        }
        else
        {
            obj.transform.FindChild("red").GetComponent <UISprite>().gameObject.SetActive(false);
            _fireEmployees.Remove((uint)employee.InstId);
        }
    }
Example #15
0
    void OnClicTeamType(ButtonScript obj, object args, int param1, int param2)
    {
        minsLevel = 1;
        typeTeam  = (TeamType)param1;

        GetminLevel(typeTeam);

        //GlobalValue.Get((Constant)param1, out minsLevel);
        if (typeTeam == TeamType.TT_None)
        {
            leftLevel = 1;
        }
        else
        {
            leftLevel = minsLevel;
        }
        InitLevelLeft(rightLevel - leftLevel + 1);
        TeamTargetCell tcell = obj.GetComponent <TeamTargetCell>();

        if (_tcell != null)
        {
            _tcell.iconSp.gameObject.SetActive(false);
        }
        _tcell = tcell;
        tcell.iconSp.gameObject.SetActive(true);
        UICenterOnIndex CenterOnIndex = grid_leftlevel.GetComponent <UICenterOnIndex>();

        CenterOnIndex.UpdateItemPosition(0);
        isTarget = true;
    }
Example #16
0
    private void OnClickMainSkill(ButtonScript obj, object args, int param1, int param2)
    {
        SkillCellUI lCell = obj.GetComponent <SkillCellUI>();

        if (curCell != null)
        {
            curCell.back.gameObject.SetActive(false);
            curCell.buleBack0.gameObject.SetActive(false);
            //curCell.buleBack1.gameObject.SetActive (false);
        }

        curCell = lCell;
        lCell.back.gameObject.SetActive(true);
        curCell.buleBack0.gameObject.SetActive(true);
        //curCell.buleBack1.gameObject.SetActive (true);
        //UpdateSKillInfoLevel (obj.name);
        UpdatetopInfo(obj.GetComponent <SkillCellUI> ());
    }
 private void CreateMenueButtons()
 {
     _input = _menu.AddInputField("Threshold", this);
     _input.GetComponent <RectTransform>().localRotation = new Quaternion(0, 0, 0, 0);
     _input.UpdateInputText(threshold.ToString());
     _dropdown = _menu.AddDropdown("Axis", this);
     _dropdown.UpdateOption(axis);
     _dropdown.GetComponent <RectTransform>().localRotation = new Quaternion(0, 0, 0, 0);
     _button = _menu.AddButton("SplitDataset", this);
     _button.GetComponent <RectTransform>().localRotation = new Quaternion(0, 0, 0, 0);
 }
Example #18
0
    private void OnCheckPlayer(ButtonScript obj, object args, int param1, int param2)
    {
        ArenaPlayerCellUI cell = obj.GetComponent <ArenaPlayerCellUI> ();

        if (cell.Player == null)
        {
            return;
        }

        NetConnection.Instance.requestCheckMsg(cell.Player.name_);
    }
Example #19
0
    private void OnClicKindSkill(ButtonScript obj, object args, int param1, int param2)
    {
        forgetBtn.gameObject.SetActive(true);
        learnBtn.gameObject.SetActive(true);
        SkillData sData = obj.GetComponent <SkillCellUI>().data;

        if (sData == null)
        {
            return;
        }
        UpdateDesc(sData);
    }
Example #20
0
    void OnClicTeamType(ButtonScript obj, object args, int param1, int param2)
    {
        typeTeam = (TeamType)param1;
        TeamTargetCell tcell = obj.GetComponent <TeamTargetCell>();

        if (curCell != null)
        {
            curCell.iconSp.gameObject.SetActive(false);
        }
        curCell = tcell;
        tcell.iconSp.gameObject.SetActive(true);
        RefreshTeamTypeMenbers(typeTeam);
    }
Example #21
0
 public void OnClickrequest(ButtonScript obj, object args, int param1, int param2)
 {
     if (GuildSystem.battleState == 0 && IsExitGuild24())
     {
         isrequest = !isrequest;
         GuildSystem.UpdateRequest(Page, Index, isrequest);
         UILabel la = obj.GetComponentInChildren <UILabel> ();
         la.text = LanguageManager.instance.GetValue("Guild_Yshenqing");
         UIButton btn = obj.GetComponent <UIButton> ();
         requestBtn.isEnabled = false;
     }
     NetConnection.Instance.requestJoinGuild(GuildViewerData.guid_);
 }
Example #22
0
    private void OnClickmember(ButtonScript obj, object args, int param1, int param2)
    {
        if (GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).roleId_ == param1)
        {
            return;
        }
        tipsObj.SetActive(true);
        OperatingTips opt   = tipsObj.GetComponent <OperatingTips> ();
        MemberCell    mcell = obj.GetComponent <MemberCell>();

        opt.Member = mcell.Member;
        opt.jiantou.transform.position = new Vector3(opt.jiantou.transform.position.x, obj.gameObject.transform.position.y, 0f);
    }
Example #23
0
    public void SetDisplay()
    {
        string levelText = "Level " + levelInfo.levelNumber + " - " + levelInfo.moveCount + " Moves";
        string scoreText = "Highest Score " + levelInfo.highScore;

        transform.Find("Texts/LevelText").GetComponent <TextMeshPro>().text = levelText;
        transform.Find("Texts/ScoreText").GetComponent <TextMeshPro>().text = scoreText;
        if (levelInfo.locked)
        {
            playButton.GetComponent <BoxCollider2D>().enabled = false;
            playButton.transform.Find("Image").GetComponent <SpriteRenderer>().color = new Color(0f, 0f, 0f, 0.8f);
            playButton.transform.Find("Text").gameObject.SetActive(false);
            playButton.transform.Find("Lock").gameObject.SetActive(true);
        }
        else
        {
            playButton.GetComponent <BoxCollider2D>().enabled = true;
            playButton.transform.Find("Image").GetComponent <SpriteRenderer>().color = Color.white;
            playButton.transform.Find("Text").gameObject.SetActive(true);
            playButton.transform.Find("Lock").gameObject.SetActive(false);
        }
    }
Example #24
0
    void FillList()
    {
        foreach (var level in LevelList)
        {
            GameObject   newButton = Instantiate(levelButton) as GameObject;  // Instatiating buttons to Spacer
            ButtonScript button    = newButton.GetComponent <ButtonScript>(); //ref to ButtonScript
            button.LevelText.text = level.LevelText;
            //LEVEL1, LEVEL2, LEVEL3 etc.

            if (PlayerPrefs.GetInt("Level" + button.LevelText.text) == 1)
            {
                level.Unlocked       = 1;
                level.isInteractable = true;
            }

            button.unLocked = level.Unlocked;
            button.GetComponent <Button>().interactable = level.isInteractable;
            button.GetComponent <Button>().onClick.AddListener(() => LoadLevels("Level1" + button.LevelText.text));

            if (PlayerPrefs.GetInt("Level" + button.LevelText.text + "Level_score") > 0)
            {
                button.star1.SetActive(true);
            }
            if (PlayerPrefs.GetInt("Level" + button.LevelText.text + "Level_score") > 50)
            {
                button.star2.SetActive(true);
            }
            if (PlayerPrefs.GetInt("Level" + button.LevelText.text + "Level_score") > 100)
            {
                button.star3.SetActive(true);
            }

            newButton.transform.SetParent(Spacer);
        }


        SaveAll();
    }
Example #25
0
    private void OnEmployeeCell(ButtonScript obj, object args, int param1, int param2)
    {
        EmployeeCellUI cell = obj.GetComponent <EmployeeCellUI> ();

        if (cell == null || cell.Employee == null)
        {
            return;
        }

        uint[] emps = GamePlayer.Instance.GetEmployeesBattles(_selectEmpGroup);
        int    hNum = 0;

        for (int i = 0; i < emps.Length; i++)
        {
            if (emps[i] != 0)
            {
                hNum++;
            }
        }
        if (hNum >= _conBattleNum)
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("shangzhenyiman"));
            return;
        }
        if (GetSameName(cell.Employee.InstName))
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("samehuoban"));
            return;
        }
        if (EmployeeTaskSystem.instance.IsTaskEmp(cell.Employee.InstId))
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("huanbanrenwuzhong"));
            return;
        }
        _employee = GamePlayer.Instance.GetEmployeeById(cell.Employee.InstId);
        EmployessSystem.instance.CurEmployee = _employee;

        NetConnection.Instance.setBattleEmp((uint)_employee.InstId, (EmployeesBattleGroup)_selectEmpGroup, true);
        NetWaitUI.ShowMe();

        //_employee = cell.Employee;
        //if (_employee == null)
        //		return;
        //_employee = GamePlayer.Instance.GetEmployeeById (_employee.InstId);
        //EmployessSystem.instance.CurEmployee = _employee;
        //bDouble = false;
        //	EmployeeListUI.ShowMe ();
        //StartCoroutine (DelayOneClick ());
    }
Example #26
0
    void OnClickItem4Buy(ButtonScript obj, object args, int param1, int param2)
    {
        ResetItem4Buy();
        COM_SellItem realItem = AuctionHouseSystem.crtDisplayList_[param1];

        crtSelectSellItem_                      = new COM_SellItem();
        crtSelectSellItem_.baby_                = realItem.baby_;
        crtSelectSellItem_.guid_                = realItem.guid_;
        crtSelectSellItem_.item_                = realItem.item_;
        crtSelectSellItem_.guid_                = realItem.guid_;
        crtSelectSellItem_.sellPlayerId_        = realItem.sellPlayerId_;
        crtSelectSellItem_.sellPrice            = realItem.sellPrice;
        crtSelectSellItem_.title_               = realItem.title_;
        obj.GetComponent <UIButton>().isEnabled = false;
    }
Example #27
0
    private void OnClickmainToggle(ButtonScript obj, object args, int param1, int param2)
    {
        UIToggle tog = obj.GetComponent <UIToggle> ();

        if (GuildSystem.GetVicePremiers().Count > 1)
        {
            targetId = GuildSystem.GetVicePremiers()[1].roleId_;

            RadioToggle(tog);
        }
        else
        {
            tog.value = false;
        }
    }
Example #28
0
    void OnClickShowTips(ButtonScript obj, object args, int param1, int param2)
    {
        TeamMemberCell tcell = obj.GetComponent <TeamMemberCell> ();

        if (tcell.PlayerInst == null)
        {
            return;
        }
//		for(int i =0;i<TeamSystem.GetTeamMembers().Length;i++)
//		{
        if (isLeader_)
        {
            if (TeamSystem.IsTeamLeader((int)tcell.PlayerInst.instId_))
            {
                duaizhangTips.SetActive(false);
                duaiyuanTips.SetActive(false);
            }
            else
            {
                duaizhangTips.SetActive(true);
                TeamTips tp = duaizhangTips.GetComponent <TeamTips>();
                tp.uId = (int)tcell.PlayerInst.instId_;
                duaizhangTips.transform.localPosition = new Vector3(obj.transform.localPosition.x, obj.transform.localPosition.y, duaizhangTips.transform.localPosition.z);

                duaiyuanTips.SetActive(false);
            }
        }
        else
        {
            if (GamePlayer.Instance.InstId == (int)tcell.PlayerInst.instId_)
            {
                duaizhangTips.SetActive(false);
                duaiyuanTips.SetActive(false);
            }
            else
            {
                duaizhangTips.SetActive(false);
                duaiyuanTips.SetActive(true);
                duaiyuanTips.transform.localPosition = new Vector3(obj.transform.localPosition.x, obj.transform.localPosition.y, duaiyuanTips.transform.localPosition.z);
                UIManager.SetButtonEventHandler(tipsCloseBtn.gameObject, EnumButtonEvent.OnClick, OnClicktipsClose, 0, 0);
                UIManager.SetButtonEventHandler(HyBtn.gameObject, EnumButtonEvent.OnClick, OnClickHy, (int)tcell.PlayerInst.instId_, 0);
                UIManager.SetButtonEventHandler(playerInfoBtn.gameObject, EnumButtonEvent.OnClick, OnClickplayerInfo, (int)tcell.PlayerInst.instId_, 0);
            }
        }


//		}
    }
Example #29
0
    void OnClickShop(ButtonScript obj, object args, int param1, int param2)
    {
        StoreUI.Instance.Tips.SetActive(true);
        if (GamePlayer.Instance.isInBattle)
        {
            StoreUI.Instance.Tips.GetComponent <StoreTips>().DetermineBtn.gameObject.SetActive(false);
        }
        else
        {
            StoreUI.Instance.Tips.GetComponent <StoreTips>().DetermineBtn.gameObject.SetActive(true);
        }
        StoreTips stips = StoreUI.Instance.Tips.GetComponent <StoreTips>();
        PropsCell cCell = obj.GetComponent <PropsCell>();

        stips.SpData = cCell.SpData;
    }
Example #30
0
    void OnClickBtn(ButtonScript obj, object args, int param1, int param2)
    {
        SkillId  = param1;
        newLevel = param2;
        BabyLearningCell lCell = obj.GetComponent <BabyLearningCell>();
        BabySkillInfo    info  = babySkillInfo.GetComponent <BabySkillInfo>();

        if (_curLearningCell != null)
        {
            _curLearningCell.rasp.gameObject.SetActive(false);
        }
        _curLearningCell = lCell;
        lCell.rasp.gameObject.SetActive(true);
        info.SkpData = lCell.SkpData;
        GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_ClickBabyLearningSkill);
    }