- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
CrilleStyles · Oct 11, 2014 at 08:02 AM ·
booleantag
Is there a way to activate a boolean through tag?
Is there a way to activate for example boolean1 if it finds the tag "Tag1" and activate boolean2 if it finds the tag "Tag2" on function Start()?
Comment
Best Answer
Answer by Kiwasi · Oct 11, 2014 at 08:35 AM
bool boolean1;
bool boolean2;
void Start () {
if(tag = "Tag1"){
boolean1 = true;
} else if (tag = "Tag2") {
boolean2 = true;
}
}
Your answer
