예제 #1
0
        void PlayerCreated(int playerNumber)
        {
            if (playerNumber == 0) return;

            var newPlayer = Sync.Clients.LocalClient.GetPlayer(playerNumber);
            var bot = new MySandboxBot(newPlayer);

            // TODO: Via proxy
            m_botCollection.AddBot(playerNumber, bot);
        }
예제 #2
0
        void PlayerCreated(int playerNumber)
        {
            if (playerNumber == 0)
            {
                return;
            }

            var newPlayer = Sync.Clients.LocalClient.GetPlayer(playerNumber);
            var bot       = new MySandboxBot(newPlayer);

            // TODO: Via proxy
            m_botCollection.AddBot(playerNumber, bot);
        }