Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17098

Cc.Prefab - Add cc.Label through Properties

$
0
0

@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...... smile Thanks and God Bless....

Sincerely,

Siunday

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17098

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>