public CommandQueue Parallel(params CommandDelegate[] commands) => Sequence(Cmd.Parallel(commands));
/// <summary> /// Schedule a list of commands. /// </summary> /// <param name="commands"> The commands to be executed sequentially.</param> public void Schedule(params CommandDelegate[] commands) { _scheduler.Add(Cmd.Sequence(commands)); }
public static CommandDelegate Log(string text) { return(Cmd.Do(() => Debug.Log(text))); }
public static CommandDelegate SendMessage(GameObject gm, string eventName, object obj = null, SendMessageOptions options = SendMessageOptions.DontRequireReceiver) { return(Cmd.Do(() => gm.SendMessage(eventName, obj, options))); }
public static CommandDelegate SetActive(GameObject gm, bool isActive) { return(Cmd.Do(() => gm.SetActive(isActive))); }
public static CommandDelegate Enable(MonoBehaviour behaviour, bool isEnabled = true) { return(Cmd.Do(() => behaviour.enabled = isEnabled)); }
public static CommandDelegate LogException(Exception e) { return(Cmd.Do(() => Debug.LogException(e))); }