コード例 #1
0
    void Display_wer(List <RowEquipment> data, PackageController controller)
    {
        this.controller = controller;

        transform.DeleteAllChild();

        for (int i = 0; i < data.Count; i++)
        {
            if (controller.EquipPos == "W")
            {
                if (data[i].type == 1)
                {
                    GameObject cell = PrefabsTwo.Load("Prefabs/Wearequip", transform);
                    cell.GetComponent <EquipCellView>().Display(data[i], controller);
                }
            }
            else
            {
                if (data[i].type == 0)
                {
                    GameObject cell = PrefabsTwo.Load("Prefabs/Wearequip", transform);
                    cell.GetComponent <EquipCellView>().Display(data[i], controller);
                }
            }
        }
    }
コード例 #2
0
    public void SettingClick()
    {
        ButtonSound.ButtonClickPlay();

        PrefabsTwo.LoadUI("Prefabs/setting");
        Destroy(gameObject);
    }
コード例 #3
0
    public void Onclick()
    {
        bool isOnTeam;

        if (controller.pos != 3)
        {
            isOnTeam = TeamModel.CheckIsOnTeamByHeroId(heroInfo);
        }
        else
        {
            isOnTeam = TeamModel.CheckIsOnTeamByPID(heroInfo);
        }
        if (isOnTeam)
        {
            //Instantiate(Resources.Load<GameObject>("Prefab/WarringMessage"),GameObject.Find("Canvas").transform);
            PrefabsTwo.Alert("该英雄在编队中,无法选中", null);
            return;
        }
        controller.selectHeroInfo = heroInfo;
        controller.SelectNum.text = "1";
        for (int i = 0; i < transform.parent.childCount; i++)
        {
            if (transform.parent.GetChild(i).name.Substring(0, 9) == "LevelTeam")
            {
                continue;
            }
            transform.parent.GetChild(i).Find("Selected").gameObject.SetActive(false);
        }
        transform.Find("Selected").gameObject.SetActive(true);
    }
コード例 #4
0
    /// <summary>
    /// 返回建造页面
    /// </summary>
    public void BackToBuild()
    {
        ButtonSound.ButtonClickPlay();
        GameObject go = PrefabsTwo.LoadUI("Prefabs/Lottery");

        Destroy(gameObject);
    }
コード例 #5
0
    public void OpenToRetire()
    {
        ButtonSound.ButtonClickPlay();
        GameObject go = PrefabsTwo.LoadUI("Prefabs/RetireSelect");

        go.GetComponent <FormationSelectController>().pos = 3;
        Destroy(gameObject);
    }
コード例 #6
0
    /// <summary>
    /// 返回编队页面
    /// </summary>
    public void BackToFormation()
    {
        ButtonSound.ButtonClickPlay();
        GameObject go = PrefabsTwo.LoadUI("Prefabs/FormationMain");

        go.GetComponent <FormationMenuController>().type = type;
        Destroy(gameObject);
    }
コード例 #7
0
 public void EditFormation(RowHeroDate heroInfo, int type)
 {
     this.type = type;
     GameObject go = PrefabsTwo.LoadUI("Prefabs/FormationSelect");
     go.GetComponent<FormationSelectController>().heroInfo = heroInfo;
     go.GetComponent<FormationSelectController>().type = type;
     Destroy(gameObject);
 }
コード例 #8
0
    public void PackegeOpen()
    {
        ButtonSound.ButtonClickPlay();
        GameObject go = PrefabsTwo.LoadUI("Prefabs/Packege");

        go.GetComponent <PackageController>().Choice = 1;
        go.GetComponent <PackageController>().ShowPackage();
        Destroy(gameObject);
    }
コード例 #9
0
    public void EquipCellClick(RowEquipment data)
    {
        selectedData = data;
        GameObject go = PrefabsTwo.Load("Prefabs/equipInfo", transform);

        mesage    = go;
        equipInfo = go.GetComponent <EquipInfoView>();
        equipInfo.Display(selectedData, this);
    }
コード例 #10
0
 public void AddFormation(int pos,int type)
 {
     this.pos = pos;
     this.type = type;
     GameObject go = PrefabsTwo.LoadUI("Prefabs/FormationSelect");
     go.GetComponent<FormationSelectController>().pos = pos;
     go.GetComponent<FormationSelectController>().type = type;
     Destroy(gameObject);
 }
コード例 #11
0
    void Display(List <RowEquipment> data, PackageController controller)
    {
        this.controller = controller;

        //Debug.Log("这啥"+JsonMapper.ToJson(data));

        transform.DeleteAllChild();

        for (int i = 0; i < data.Count; i++)
        {
            GameObject cell = PrefabsTwo.Load("Prefabs/equip", transform);
            cell.GetComponent <EquipCellView>().Display(data[i], controller);
        }
    }
コード例 #12
0
    public void OpenPackage(string pos)
    {
        GameObject go = PrefabsTwo.LoadUI("Prefabs/Packege");

        go.GetComponent <PackageController>().Choice = 2;

        go.GetComponent <PackageController>().EquipPos  = pos;
        go.GetComponent <PackageController>().EquipHero = Date;

        go.GetComponent <PackageController>().ShowPackage();


        Destroy(gameObject);
    }
コード例 #13
0
 public void Formation()
 {
     ButtonSound.ButtonClickPlay();
     PrefabsTwo.LoadUI("Prefabs/FormationMain");
     Destroy(gameObject);
 }
コード例 #14
0
    public void ToPlayInfo(RowHeroDate heroInfo)
    {
        GameObject go = PrefabsTwo.LoadUI("Prefabs/PlayerInfo");
        go.GetComponent<PlayerInfoView>().Str_DisPlay(heroInfo);

    }
コード例 #15
0
ファイル: info.cs プロジェクト: YxwxWh/Game.AzurLane
 public void OnClick()
 {
     Destroy(gameObject);
     PrefabsTwo.LoadUI("MainMenu");
 }
コード例 #16
0
 public void PauseClick()
 {
     PrefabsTwo.LoadUI("BattleUI/pause");
 }
コード例 #17
0
 public void BackToMain()
 {
     ButtonSound.ButtonClickPlay();
     PrefabsTwo.LoadUI("MainMenu");
     Destroy(gameObject);
 }
コード例 #18
0
 public void AttackClick()
 {
     ButtonSound.ButtonClickPlay();
     PrefabsTwo.LoadUI("Prefabs/Fight");
     Destroy(gameObject);
 }
コード例 #19
0
 public void BulidOpen()
 {
     ButtonSound.ButtonClickPlay();
     PrefabsTwo.LoadUI("Prefabs/Lottery");
     Destroy(gameObject);
 }
コード例 #20
0
 public void MissionOpen()
 {
     ButtonSound.ButtonClickPlay();
     PrefabsTwo.LoadUI("Prefabs/Mission");
     Destroy(gameObject);
 }
コード例 #21
0
 public void Chuanwu()
 {
     ButtonSound.ButtonClickPlay();
     PrefabsTwo.LoadUI("Prefabs/chuanwu");
     Destroy(gameObject);
 }