| | |
| | | package com.secondworld.demo; |
| | | |
| | | import com.secondworld.sdk.GTGameApp; |
| | | import com.secondworld.sdk.GTGameMain; |
| | | import android.app.Application; |
| | | |
| | | public class MyApp extends GTGameApp { |
| | | import com.secondworld.sdk.BtGameMain; |
| | | import com.secondworld.sdk.GameAppProxy; |
| | | |
| | | public class MyApp extends Application { |
| | | |
| | | @Override |
| | | protected void registerProxy() { |
| | | super.registerProxy(); |
| | | public void onCreate() { |
| | | super.onCreate(); |
| | | GameAppProxy.create(this,null); |
| | | GameAppProxy.isDemo=true; |
| | | //主界面代理注册 |
| | | MainActivity.registerProxy(GTGameMain.class); |
| | | MainActivity.registerProxy(BtGameMain.class); |
| | | } |
| | | |
| | | } |