public int Compare(GameObject x, GameObject y) { if (x == y) { return(0); } var xIsFollower = _aiFollowers.Contains(x); var yIsFollower = _aiFollowers.Contains(y); if (!xIsFollower && yIsFollower) { return(-1); } if (xIsFollower && !yIsFollower) { return(1); } var xIdx = _party.IndexOf(x); var yIdx = _party.IndexOf(y); return(xIdx.CompareTo(yIdx)); }
public int Compare(GameObject x, GameObject y) { var xIdx = _party.IndexOf(x); var yIdx = _party.IndexOf(y); return(xIdx.CompareTo(yIdx)); }