private void ReturnSegment(MapViewSegment segment) { segment.gameObject.SetActive(false); _segmentsPool.Enqueue(segment); }
private void OnSegmentHided(MapViewSegment segment) { _segmentsTransitionToPool.Remove(segment); ReturnSegment(segment); }
private void OnSegmentBonusAnimationEnd(MapViewSegment obj) { --_animationsInSegments; }
private static Vector3 GetFarCornerOfSegment(MapViewSegment segment) { return(segment.transform.TransformPoint( segment.segment.localPosition + segment.segment.localScale / 2f)); }