Skip to content

Commit bfaff86

Browse files
committed
first commit
1 parent c321142 commit bfaff86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2681
-0
lines changed

app/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

app/Assets/KoganeUnityLib.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/KoganeUnityLib/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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using UnityEngine;
4+
5+
namespace KoganeUnityLib.Example
6+
{
7+
public class Example : MonoBehaviour
8+
{
9+
private void Update()
10+
{
11+
if ( Input.GetKeyDown( KeyCode.Space ) )
12+
{
13+
var task = new SingleTaskWithProfile
14+
{
15+
{ "Call 1", onEnded => Call( 3000, onEnded ) },
16+
{ "Call 2", onEnded => Call( 1000, onEnded ) },
17+
{ "Call 3", onEnded => Call( 0, onEnded ) },
18+
{ "Call 4", onEnded => Call( 2000, onEnded ) },
19+
};
20+
task.Play( "ピカチュウ" );
21+
}
22+
}
23+
24+
private async void Call( int delay, Action callback )
25+
{
26+
await Task.Delay( delay );
27+
var count = UnityEngine.Random.Range( 0, 1000000 );
28+
for ( int i = 0; i < count; i++ )
29+
{
30+
var str = $"{i}";
31+
}
32+
callback?.Invoke();
33+
}
34+
}
35+
}

app/Assets/KoganeUnityLib/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)