Exemplo n.º 1
0
        public Promise Shutdown()
        {
            const float delay = 2f;

            Debug.Log(string.Format("SceneBController.Shutdown - FriendlyName={0}", FriendlyName));

            return(PromiseFactory.StartNew(() =>
            {
                Debug.Log(string.Format("SceneBController.Shutdown - [Then] complete. FriendlyName={0}", FriendlyName));
                return "Shutdown";
            }, delay));
        }
Exemplo n.º 2
0
        public Promise Init()
        {
            const float delay = 3f;

            Debug.Log(string.Format("SceneBController.Init - FriendlyName={0}", FriendlyName));

            return(PromiseFactory.StartNew(() =>
            {
                Debug.Log(string.Format("SceneBController.Init - [Then] complete. FriendlyName={0}", FriendlyName));
                return "Init";
            }, delay));
        }
 public static Promise <TResult> Post <T, TResult>(string url, T input, Func <TResult> fakeResponse)
 {
     return(PromiseFactory.StartNew(fakeResponse, 2.5f));
 }
 public static Promise <T> Get <T>(string url, Func <T> fakeResponse)
 {
     return(PromiseFactory.StartNew(fakeResponse, 2.5f));
 }