File size: 792 Bytes
24b81cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

class HitDirectionEffectSplash extends HitDirectionEffectBase
{
	override HitDirectionImagesBase GetImageData()
	{
		typename type = HitDirectionImagesSplash;
		HitDirectionImagesSplash data = HitDirectionImagesSplash.Cast(type.Spawn());
		return data;
	}
	
	override void FinalizePositionCalculation()
	{
		//blobs move around the edges, the rest on elypsis
		m_PosX = m_PosXScreenEdge;
		m_PosY = m_PosYScreenEdge;
	}
	
	override void SetIndicatorRotation(float timeslice = -1.0)
	{
		if ( timeslice == -1.0) //does not rotate on dynamic mode update
		{
			if (m_RotationOverride == HitDirectionConstants.ROTATION_DEFAULT)
			{
				m_LayoutRoot.SetRotation(0,0,Math.RandomIntInclusive(0,359),true);
			}
			else
			{
				m_LayoutRoot.SetRotation(0,0,m_RotationOverride,true);
			}
		}
	}
}