예제 #1
0
    //ライバル表示可能か判定(そのモードと方向で自身の記録が存在する場合は表示可)
    public void JudgmentTggCategory()
    {
        var tglCatNeighbors = tggCategory.transform.Find("tglCatNeighbors").GetComponent <Toggle>();
        var playerName      = GameMaster.gameMaster.settings.name;
        var id        = tggMode.ActiveToggles().FirstOrDefault().GetComponent <ModeElementForRanking>().id;
        var direction = tggDirection.ActiveToggles().FirstOrDefault().GetComponent <DirectionElementForRanking>().directionType;

        rankingManager.IsNameExistInRanking(playerName, id, direction, (bool isNameExist) =>
        {
            if (isNameExist)
            {
                tglCatNeighbors.interactable = true;
            }
            else
            {
                tglCatNeighbors.interactable = false;
            }
        });
    }