Esempio n. 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);
        }
Esempio n. 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);
        }