#Your variable is static

1 messages · Page 1 of 1 (latest)

severe lily
#

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

minor sphinx
#

looks like you're trying to put a bool array into somewhere that expects a single bool

severe lily
#

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

minor sphinx
#

looks like isTriggered is actually a bool array

#

not a bool

severe lily
#

i didnt save my script when i changed isTriggered to bool from array