예제 #1
0
    public Transform GetRevivePos()
    {
        Transform targetMap = null;
        IList     pPosList  = new List <Transform>();

        pPosList = currentSelect.GetAllEmptyMaps();
        IList farList = new List <Transform>();

        farList = MapHelper.GetFarestMaps(currentRC.playerA, pPosList);
        int rnd = Random.Range(0, farList.Count - 1);

        targetMap = farList[rnd] as Transform;
        return(targetMap);
    }