6 typename type = HitDirectionImagesArrow;
7 HitDirectionImagesArrow data = HitDirectionImagesArrow.Cast(type.Spawn());
11 override void FinalizePositionCalculation()
14 float distance_x = (m_DistanceAdjust * m_SizeXEnf) + (m_SizeXEnf / 2.5);
15 float distance_y = (m_DistanceAdjust * m_SizeYEnf) + (m_SizeYEnf / 2.5);
16 m_PosX =
Math.Sin(m_AngleRad) * distance_x;
17 m_PosY = -
Math.Cos(m_AngleRad) * distance_y;
20 override void SetIndicatorRotation(
float timeslice = -1.0)
22 if (m_RotationOverride == HitDirectionConstants.ROTATION_DEFAULT)
24 m_LayoutRoot.SetRotation(0,0,
Math.RAD2DEG * m_AngleRad,
true);
28 m_LayoutRoot.SetRotation(0,0,m_RotationOverride,
true);