示例#1
0
    public void Focus()
    {
        if (possibleSlots.Count == 0)
        {
            return;
        }

        Slot choosenSlot = possibleSlots[Random.Range(0, possibleSlots.Count)];

        focusOnSlot = true;
        foreach (Transform spot in spots)
        {
            spot.LookAt(choosenSlot.pieceCenter);
        }

        PlayerPiece pp = choosenSlot.GetPlayerPiece();

        if (pp != null)
        {
            pp.Invicible(10);
        }
    }