diff --git a/README.md b/README.md index 69752f2..0f0ef37 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +UniTask +=== +[![GitHub Actions](https://github.com/Cysharp/UniTask/workflows/Build-Debug/badge.svg)](https://github.com/Cysharp/UniTask/actions) [![Releases](https://img.shields.io/github/release/Cysharp/UniTask.svg)](https://github.com/Cysharp/UniTask/releases) + +Provides an efficient async/await integration to Unity. + ## Table of Contents @@ -18,11 +24,6 @@ -UniTask -=== -[![GitHub Actions](https://github.com/Cysharp/UniTask/workflows/Build-Debug/badge.svg)](https://github.com/Cysharp/UniTask/actions) [![Releases](https://img.shields.io/github/release/Cysharp/UniTask.svg)](https://github.com/Cysharp/UniTask/releases) - -Provides an efficient async/await integration to Unity. Getting started --- @@ -372,6 +373,23 @@ or add `"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=Asse If you want to set a target version, UniTask is using `*.*.*` release tag so you can specify a version like `#1.3.0`. For example `https://github.com/Cysharp/UniTask.git?path=Assets/UniRx.Async#1.3.1`. +ECS, PlayerLoop +--- +TODO: + +```csharp +// Setup Entities Loop. +var loop = PlayerLoop.GetDefaultPlayerLoop(); +foreach (var world in Unity.Entities.World.All) +{ + ScriptBehaviourUpdateOrder.UpdatePlayerLoop(world, loop); + loop = PlayerLoop.GetCurrentPlayerLoop(); +} + +// UniTask PlayerLoop Initialize. +PlayerLoopHelper.Initialize(ref loop); +``` + License --- This library is under the MIT License. \ No newline at end of file