UNITÉ UTILISATION DE LA STRUX DE CHILL PERSONNÉS

//If you're trying to access a struct that's not initialized,
//you may get this error
//I.E.
myStruct newStruct;
if(someCondition){
newStruct = otherInstanceOfMyStruct;
}
Debug.Log(newStruct.data);
//This will give the error because there's no way to tell if the if statement
//will actually go through and set the struct
//so...

myStruct newStruct = new myStruct();
if(someCondition){
newStruct = otherInstanceOfMyStruct;
}
Debug.Log(newStruct.data);

//Setting "myStruct newStruct = new myStruct();" will ensure
//that you at least have the default values of the struct
Xombiehacker