/// <summary>
 /// Cancels the action.
 /// </summary>
 public void Cancel()
 {
     SHCoroutine.Stop(m_coroutine);
 }
Exemple #2
0
        /// <summary>
        /// Start the action with the specified delay (in seconds).
        /// </summary>
        /// <param name="delay">Delay in seconds.</param>
        /// <param name="action">Action.</param>
        public IAsyncAction Start(float delay, Action action)
        {
            var coroutine = SHCoroutine.Start(delay, action);

            return(new CoroutineAsyncAction(coroutine));
        }