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