how to fix object reference not set to an instance of an object - unity code example
Example: unity object not set to an instance of an object
One of your objects doesn't have a value. Make sure all your variable has values.
One of your objects doesn't have a value. Make sure all your variable has values.