public static ResourcePlayCommands Create(params IResourcePlayCommand[] playCommands)
    {
        ResourcePlayCommands createCommands = Pool.Spawn();

        foreach (var command in playCommands)
        {
            createCommands.AddCommand(command);
        }

        return(createCommands);
    }
Exemple #2
0
 public static T AddTo <T>(this T command, ResourcePlayCommands commands)
     where T : IResourcePlayCommand
 {
     commands.AddCommand(command);
     return(command);
 }