Fixed errors in unity script