Camera Rotation around GameObjet

Hi
I need your help on the code to rotate my camera around my central gameobject,

You can orbit the camera around some object (under joystick or keyboard control) with this script:

var center:Transform;
var speed:float = 60;

function Update(){
  var orb = Input.GetAxis("Horizontal")*speed;
  transform.RotateAround(center.position,Vector3.up,orb*Time.deltaTime);
}

Drag the object you want to be orbited to the center variable in the Inspector. The camera can be rotated around it using keys A and D, if the standard input setting was not modified. If you want to have different control keys, define them at the input manager. In the docs you can read about this function (including an example of constant speed orbiting):

http://unity3d.com/support/documentation/ScriptReference/Transform.RotateAround.html

I need the simple code dears,
and here is the answer :wink:

transform.LookAt(target);

transform.Translate(Vector3.right * Time.deltaTime);