c#
AndroidJavaClass up = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
AndroidJavaObject currentActivity = up.GetStatic<AndroidJavaObject> ("currentActivity");
currentActivity.Call("StartActivity0","第一个Activity");
java
public class JellyCraft extends UnityPlayerActivity {
public void StartActivity0(String d)
{
_hander.sendEmptyMessage(2);
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-19 12:34:26