SdkProject/library/src/main/java/com/secondworld/sdk/GameApp.java
@@ -8,14 +8,17 @@ import com.secondworld.sdk.utils.LogUtil; import com.unity3d.player.UnityPlayer; public class GameApp extends Application { public abstract class GameApp extends Application { public static GameApp I; public String appId = ""; @Override public void onCreate() { super.onCreate(); newInstance(); initPlatformDiff(); LogUtil.Init(this); UnityMsgHandler.initCommandMap(); registerProxy(); @@ -26,6 +29,8 @@ I = this; } protected abstract void initPlatformDiff(); protected void registerProxy() { }