A Good Day To Die Hard Game For Android Direct
public void pause() { // Pause Unity player }
public class GameActivity extends Activity { private UnityPlayer unityPlayer; a good day to die hard game for android
@Override protected void onDestroy() { super.onDestroy(); unityPlayer.quit(); } } public void pause() { // Pause Unity player
<activity android:name=".GameActivity" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> @Override protected void onDestroy() { super.onDestroy()