public int GetPlayerIndex() { int index = Array.IndexOf(Enum.GetValues(playerIndex.GetType()), playerIndex); return(index); }