-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
874ad86
commit 3680470
Showing
19 changed files
with
87 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
Assets/Plugins/Android/I2Localization/res/values-ms/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="t">t</string> | ||
</resources> |
8 changes: 8 additions & 0 deletions
8
Assets/Plugins/Android/I2Localization/res/values-ms/strings.xml.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
using System.Runtime.InteropServices; | ||
using UnityEngine.Advertisements; | ||
|
||
public class UntitledLauncher { | ||
|
||
private AndroidJavaClass activityClass; | ||
private AndroidJavaObject activity; | ||
private AndroidJavaClass untitledNative; | ||
private static UntitledLauncher instance; | ||
|
||
public static void Init() | ||
{ | ||
if (instance != null) | ||
{ | ||
return; | ||
} | ||
|
||
instance = new UntitledLauncher(); | ||
Debug.Log("untitled launcher is not inited"); | ||
instance.StartPackage(); | ||
} | ||
|
||
public static void Show() | ||
{ | ||
UntitledLauncher.instance.BringToFront(); | ||
} | ||
|
||
|
||
private void BringToFront() | ||
{ | ||
untitledNative.CallStatic("bringToFront", activity); | ||
} | ||
|
||
private void StartPackage() | ||
{ | ||
Debug.Log("calling start package"); | ||
activityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | ||
activity = activityClass.GetStatic<AndroidJavaObject>("currentActivity"); | ||
|
||
untitledNative = new AndroidJavaClass("com.wds.untitled.UntitledNative"); | ||
untitledNative.CallStatic("init", activity); | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
Assets/Scripts/AdLauncher.cs.meta → Assets/Scripts/UntitledLauncher.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.