unity what is a struct code example
Example: unity struct
public class MyClass
{
public int valueA, valueB;
}
public class MyStruct
{
public int valueA, valueB;
}
void MyMethod(MyClass myClassObject);
void MyMethod(MyStruct myStructObject);