Proper way to handle values with nodes and behaviours

I'm looking for some clarification for appropriate development with behaviours.
 If I have a node with a behaviour. Should I be setting property values on the node or on the behaviour?
 
I believe that the purpose of the behaviour is to handle events and execute methods to set values on the node it is attached to.
 
Then when getting the value from another behaviour I would call something like this:
this.myNode.myNodeName.myProperty;
Has invited:

lijh

Favor from: justinboyd5

In my opinion, set property values on the behaviour is a wise practice to avoid some potential risks such as name clashs between node and behaviour, and this will also make your code structure more clear too.

To reply to a question, please Login or registered