Lets make an other example
Suppose you have a human Character , let's call it John
In Unity,If you want to move and to animate it, you must create a script ( component)
where you write
transform.Move()
animation.Play();
then you attach the script to john
transform and animation are instances of the classes Transform and Animation which contain the method Move and Play respectively
A traditional engine supplies, for eaxmple a class Entity
you instance the object john
Entity john = new Entity();
and than you call
john.Move()
john.Play()
Move() and Play() are methods of the class Entity
I suppose that the different approach is evident
Last edited by AlbertoT; 09/17/11 18:12.