#Your variable is static
1 messages · Page 1 of 1 (latest)
yes, you are right
sorry for bothering you with questions
but im trying to get that algorithm to work for like 7 hours now
error CS0029: Cannot implicitly convert type 'bool[]' to 'bool'
but why, im trying to insert value into array
looks like you're trying to put a bool array into somewhere that expects a single bool
emptyRooms[i]=transform.GetChild(i).GetComponent<TriggerDetection>().isTriggered;
its just this line
everything else is in comments now
emptyRooms is a bool array and isTriggered is bool too
oh wait you are right
i didnt save my script when i changed isTriggered to bool from array