↧
Answer by Mikea15
Hi. Can't you just pass it as a bool parameter?? public void changeBoolean( bool boolName ) { // if negative => sets to positive. vice versa. boolName = !boolName; }
View ArticleAnswer by Related Sloth
Sorry for the poorly explained question. The solution was very simple once I had another look at the unity manual. Simply globalStats.GetComponent().situation1 = true; No use of mutator methods...
View ArticleAnswer by Mikea15
Hi. Can't you just pass it as a bool parameter?? public void changeBoolean( bool boolName ) { // if negative => sets to positive. vice versa. boolName = !boolName; }
View ArticleAnswer by Related-Sloth
Sorry for the poorly explained question. The solution was very simple once I had another look at the unity manual. Simply globalStats.GetComponent().situation1 = true; No use of mutator methods...
View Article