First of all for encapsulation I mean :

"Encapsulation is the process of combining data and functions into a single unit called class "

If so

Camera.main.transform.Translate(move*Time.deltaTime);

It is not, in my opinion, a case of encapsulation

Translate is combined into the class Transform (Upper case)
transform (lower case) is some how similar to the pointer "my" which is used to link the method Translate() to the Game Object Camera

In other engines Camera is a class which encaspulate all the camera related data and methods , such as Translate()



Last edited by AlbertoT; 09/17/11 22:10.