Exemplo n.º 1
0
        public AsyncState AddTrigger()
        {
            var trigger = new AsyncTriggerStatus();

            _triggers.Add(trigger);
            return(Planner.Chain()
                   .AddAwait(AwaitFunc, trigger)
                   );
        }
 public static AsyncState PlayOneShotAsync(this AudioSource source, AudioClip clip, float volume = 1f)
 {
     return(Planner.Chain().AddCommand(new AsyncCommandAudio(source, clip, volume)));
 }
 public static AsyncChain AsAsync(this IEnumerator coroutine)
 {
     return(Planner.Chain().AddCoroutine(coroutine));
 }
 public static AsyncChain AsAsync(this AsyncOperation coroutine)
 {
     return(Planner.Chain().AddCoroutine(coroutine));
 }
 public static AsyncChain AsAsync(this WaitForEndOfFrame coroutine)
 {
     return(Planner.Chain().AddCoroutine(coroutine));
 }