public class GameActivity extends Activity { private UnityPlayer unityPlayer;
@Override protected void onDestroy() { super.onDestroy(); unityPlayer.quit(); } }
@Override protected void onResume() { super.onResume(); unityPlayer.resume(); } a good day to die hard game for android
You can download Unity and create a new project. You can then use the Unity Android plugin to build and deploy your game on Android devices.
[1] Smith, J. (2015). Mobile game development: A survey of current trends and technologies. Journal of Mobile Human Computer Interaction, 7(1), 1-15. @Override protected void onDestroy() { super.onDestroy()
import android.content.Context; import android.view.View;
public void quit() { // Quit Unity player } } 1-15. import android.content.Context
public void init() { // Initialize Unity player }