Skip to content

Commit f037812

Browse files
committed
first commit
1 parent bb39eeb commit f037812

29 files changed

+2373
-0
lines changed

app/.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/[Ll]ibrary/
2+
/[Tt]emp/
3+
/[Oo]bj/
4+
/[Bb]uild/
5+
/[Bb]uilds/
6+
/Assets/AssetStoreTools*
7+
8+
# Visual Studio 2015 cache directory
9+
/.vs/
10+
11+
# Autogenerated VS/MD/Consulo solution and project files
12+
ExportedObj/
13+
.consulo/
14+
*.csproj
15+
*.unityproj
16+
*.sln
17+
*.suo
18+
*.tmp
19+
*.user
20+
*.userprefs
21+
*.pidb
22+
*.booproj
23+
*.svd
24+
*.pdb
25+
26+
# Unity3D generated meta files
27+
*.pidb.meta
28+
29+
# Unity3D Generated File On Crash Reports
30+
sysinfo.txt
31+
32+
# Builds
33+
*.apk
34+
35+
/Assets/Plugins*
36+
/Assets/Plugins/Sirenix*

app/Assets/UniAndroidIntent.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/Assets/UniAndroidIntent/Example.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
using KoganeUnityLib;
2+
using System.Text;
3+
using UnityEngine;
4+
using UnityEngine.UI;
5+
6+
namespace KoganeUnityLibExample
7+
{
8+
public sealed class Example : MonoBehaviour
9+
{
10+
[SerializeField] private Text m_text = null;
11+
12+
private void Start()
13+
{
14+
var sb = new StringBuilder();
15+
16+
sb.AppendLine( "---------- int ----------" );
17+
sb.AppendLine();
18+
sb.AppendLine( UniAndroidIntent.GetInt( "i" ).ToString() );
19+
sb.AppendLine();
20+
sb.AppendLine( "---------- long ----------" );
21+
sb.AppendLine();
22+
sb.AppendLine( UniAndroidIntent.GetLong( "l" ).ToString() );
23+
sb.AppendLine();
24+
sb.AppendLine( "---------- string ----------" );
25+
sb.AppendLine();
26+
sb.AppendLine( UniAndroidIntent.GetString( "s" ) );
27+
sb.AppendLine();
28+
sb.AppendLine( "---------- bool ----------" );
29+
sb.AppendLine();
30+
sb.AppendLine( UniAndroidIntent.GetBool( "b" ).ToString() );
31+
sb.AppendLine();
32+
sb.AppendLine( "---------- int array ----------" );
33+
sb.AppendLine();
34+
35+
foreach ( var n in UniAndroidIntent.GetIntArray( "ia" ) )
36+
{
37+
sb.AppendLine( n.ToString() );
38+
}
39+
40+
sb.AppendLine();
41+
sb.AppendLine( "---------- long array ----------" );
42+
sb.AppendLine();
43+
44+
foreach ( var n in UniAndroidIntent.GetLongArray( "la" ) )
45+
{
46+
sb.AppendLine( n.ToString() );
47+
}
48+
49+
sb.AppendLine();
50+
sb.AppendLine( "---------- string array ----------" );
51+
sb.AppendLine();
52+
53+
foreach ( var n in UniAndroidIntent.GetStringArray( "sa" ) )
54+
{
55+
sb.AppendLine( n );
56+
}
57+
58+
m_text.text = sb.ToString();
59+
}
60+
}
61+
}

app/Assets/UniAndroidIntent/Example/Example.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)