Red de conocimiento informático - Material del sitio web - Cómo colocar sprites en mosaico en unity2d

Cómo colocar sprites en mosaico en unity2d

Cómo colocar en mosaico los sprites de unity2d

Supongamos que tenemos un programa de este tipo, el código fuente es el siguiente:

#Contiene "mytool1.h"

# Contiene "mi herramienta 2.h"

int main(int argc, char **argv)

{

mytool 1_print(" hola ");

miherramienta 2 _ print(" hola ");

}

#ifndef _MYTOOL_1_H

#define _MYTOOL_1_H

void mytool 1 _ print(char * print _ str);

#endif

#Contiene "mytool1.h"

void mytool 1 _ print( char * print _ str)

{

printf(" Esta es mi herramienta 1 print s \ n ", print _ str

}

#ifndef _MYTOOL_2_H

#define _MYTOOL_2_H

void mytool 2 _ print(char * print _ str

#endif

#Contiene "Mi herramienta 2.h"

void mytool 2 _ print(char * print _ str)

{

printf(" Esta es mi herramienta 2 print s\n ", print_str);

}