@luke2125 wrote:
Hi,
I have a quick question, I need to access cc.Label, which contains my score of the game, can I access it through a Prefab? Cause through the code, I set it up on the Properties to access cc.Label, and then I drag the cc.Label to the Prefab, but it won't allow me to save it......I don't want to add the cc.Label as a Child, cause this Prefab is an enemy that moves around, I've read on the quick tutorial that one can invoke a method from another script into the current Prefab script? Can this be done......My objective is that when this Particular Prefab collides with another Prefab, the score increases......Any help will be appreciated it.......So much for the quick question......
Thanks and God Bless....
Sincerely,
Siunday
Posts: 1
Participants: 1