PPaste!

Mmmh, et c'est payant ?

Home - All the pastes - Authored by Thooms

Raw version

 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
33
34
35
36
37
38
39
40
41
	void OnApplicationPause(bool bPause)
	{
		Debug.Log ("ApplicationPause : " +bPause);
		if(bPause == true)
		{

			if( m_CurrentState == MEDIAPLAYER_STATE.PAUSED)
			{
				m_bPause = true;
			}

#if (UNITY_IPHONE  || UNITY_TVOS) 
			m_iPauseFrame = m_iCurrentSeekPosition;
			Stop();
			
			
			#else
			Call_Pause();
			#endif
			
			
		}
		else
		{
#if ( UNITY_IPHONE  || UNITY_TVOS )
			m_bStop = false;
			Call_Play(m_iPauseFrame);
			#else
			Call_RePlay ();
			#endif

			if( m_bPause == true)
			{
				Call_Pause();
				m_bPause = false;
			}
			
		}
		
	}