SelectPlayer() public static method

public static SelectPlayer ( Senseix selectedPlayer ) : void
selectedPlayer Senseix
return void
コード例 #1
0
        public void SetStudent(int studentIndex)
        {
            if (availablePlayers.Count <= 0)
            {
                return;
            }

            currentPlayerIndex = studentIndex % availablePlayers.Count;
            if (currentPlayerIndex < 0)
            {
                currentPlayerIndex = availablePlayers.Count + currentPlayerIndex;
            }
            SenseixSession.SelectPlayer(GetCurrentPlayer());
            SetName();
            SetFace();
            ThinksyPlugin.NextProblem();
        }