public void GotNewTargetLineUp(ShootingGalleryNewTargetLineUpMessage targetLineUp) { if (targetLineUp == null || targetLineUp.targets == null) { LSLog.LogError("No targets came in"); return; } targetCount = targetLineUp.targets.Length; newTargets = new List <ShootingGalleryTargetModel>(); for (int i = 0; i < targetLineUp.targets.Length; ++i) { if (!trackedTargets.Contains(targetLineUp.targets[i].uid)) { newTargets.Add(targetLineUp.targets[i]); trackedTargets.Add(targetLineUp.targets[i].uid); } } SpawnTargets(newTargets); string userID = ExampleManager.Instance.CurrentUser.id; ExampleManager.NetSend("setAttribute", new ExampleAttributeUpdateMessage { userId = userID, attributesToSet = new Dictionary <string, string> { { "readyState", "ready" } } }); }
private void GotNewTargetLineUp(ShootingGalleryNewTargetLineUpMessage targetLineUp) { targetsController.GotNewTargetLineUp(targetLineUp); }