public static ResourcePlayCommands Create(params IResourcePlayCommand[] playCommands) { ResourcePlayCommands createCommands = Pool.Spawn(); foreach (var command in playCommands) { createCommands.AddCommand(command); } return(createCommands); }
public static T AddTo <T>(this T command, ResourcePlayCommands commands) where T : IResourcePlayCommand { commands.AddCommand(command); return(command); }