Help, problems with code.... (newbie)
Was watching old tutorial on youtube(2013)
Old version (2013) - if(!animation.isPlaying)
Last version (2016) - if (GetComponent().isPlaying)
Is it the same??? I am asking, because "!" mean not equal or something like that, but in the latest version which one was done automatically there is no "!".
Just want to make my first open/close doors animation. Thank you!
I hope you understood my point... :D
Comment
correct, the "!" means "not". The first will return "true" if the variable "isPlaying" is false, the other will return "true" if the variable "isPlaying" is true. So pretty much it just depends on the surrounding code, as in if you want to test whether it is playing or not playing.