Пример #1
0
        void HandleKillSpawn(InsightNetworkMessage netMsg)
        {
            KillSpawnMsg message = netMsg.ReadMessage <KillSpawnMsg>();

            foreach (RunningProcessStruct process in spawnerProcesses)
            {
                if (process.uniqueID.Equals(message.UniqueID))
                {
                    process.process.Kill();
                    spawnerProcesses.Remove(process);
                    break;
                }
            }
        }
Пример #2
0
        void HandleKillSpawn(InsightNetworkMessage netMsg)
        {
            KillSpawnMsg message = netMsg.ReadMessage <KillSpawnMsg>();

            for (int i = 0; i < spawnerProcesses.Length; i++)
            {
                if (spawnerProcesses[i].uniqueID.Equals(message.UniqueID))
                {
                    spawnerProcesses[i].process.Kill();
                    spawnerProcesses[i].process  = null;
                    spawnerProcesses[i].pid      = 0;
                    spawnerProcesses[i].uniqueID = "";
                    break;
                }
            }
        }