Beispiel #1
0
    public void ShowPlayerPreview(PlayerInfo[] targetPlayerInfo)
    {
        if (!gameObject.activeSelf)
        {
            gameObject.SetActive(true);
            UIManager.Instance.SwitchUI.OpenPanel(anim);
        }

        GUIHelper.Instance.DestroyChildImmediatly <PlayerPreviewHolder> (layout_PlayerPreviewParent);

        PlayerPreviewHolder[] newPlayerPreviewHolderArr = GUIHelper.Instance.InstantiateTUnderParent <PlayerPreviewHolder, PlayerInfo>
                                                              (targetPlayerInfo, playerPreviewPrefab, layout_PlayerPreviewParent);
        for (int i = 0; i < newPlayerPreviewHolderArr.Length; i++)
        {
            newPlayerPreviewHolderArr [i].Init(i, targetPlayerInfo [i]);
        }

        allSceneInfoArr = Utillity.ShuffleArray(allSceneInfoArr);
    }
Beispiel #2
0
    void shuffleCard()
    {
        thisPlayerGenerateCardArr = Utillity.ShuffleArray(thisPlayerGenerateCardArr);

        dealCard();
    }