Ejemplo n.º 1
0
        public static FCInstruction CreateYield(Func <IEnumerator> _customYield)
        {
            FCInstruction instruction = GetInstruction();

            instruction.EnumeratorFunc = _customYield;
            instruction.Type           = FCInstructionType.CustomYield;
            return(instruction);
        }
Ejemplo n.º 2
0
        public static FCInstruction Create(Action _action)
        {
            FCInstruction instruction = GetInstruction();

            instruction.Action = _action;
            instruction.Type   = FCInstructionType.Action;
            return(instruction);
        }
Ejemplo n.º 3
0
        public static FCInstruction CreateCoroutine(Func <IEnumerator> _coroutine)
        {
            FCInstruction instruction = GetInstruction();

            instruction.EnumeratorFunc = _coroutine;
            instruction.Type           = FCInstructionType.Coroutine;
            return(instruction);
        }
Ejemplo n.º 4
0
        public static FCInstruction Create(YieldInstruction _yield)
        {
            FCInstruction instruction = GetInstruction();

            instruction.Yield = _yield;
            instruction.Type  = FCInstructionType.Yield;
            return(instruction);
        }