예제 #1
0
        /// <summary>
        /// Creates and returns an FCBuilder as an IFCInitializer
        /// </summary>
        /// <param name="_executionContext"></param>
        /// <returns></returns>
        public static IFCInitializer Initialize(MonoBehaviour _executionContext)
        {
            FCBuilder builder = new FCBuilder();

            builder.ExecutionContext = _executionContext;
            return(builder as IFCInitializer);
        }
        public static FluentCoroutine Finalize(FCBuilder builder)
        {
            FluentCoroutine fluentCoroutine;

            fluentCoroutine = new FluentCoroutine();
            fluentCoroutine.executionContext = builder.ExecutionContext;
            fluentCoroutine.instructions.AddRange(builder.Instructions);
            return(fluentCoroutine);
        }
 public static IFCInitializer FluentCoroutine(this MonoBehaviour monoBehaviour)
 {
     return(FCBuilder.Initialize(monoBehaviour));
 }