public bool TryGetPosition(out int position) { var plyrsPos = _scoreData.GetSessionValues(); var id = _idsData.GetActual().uid; plyrsPos = plyrsPos.OrderBy(x => x.time).ToList(); plyrsPos = plyrsPos.OrderByDescending(x => x.value).ToList(); position = -1; if (plyrsPos.Exists(x => x.uid == id)) { position = plyrsPos.FindIndex(x => x.uid == id); return(true); } return(false); }
//Get public string GetActualId() { return(_idsData.GetActual().uid); }