How to increment Yposition value for maincamera in unity3d

i have a scenario in which i want to increase y position value for main-camera in unity but it is not like script attached to main-camera something like to increment y position value for main-camera by script attached from another game-object.Could someone help me on this regard.

For increment Y position value with script attached to Main-camera object i guess to write code like this: Debug.Log(transform.position.y); transform.Translate(Vector3.up * 4, Space.World);

But i supposed to increment y position value for main-camera by script attached from another game-object.

@pavan123 I think I know what you are trying to do. To manipulate an object from a script on another object, you only need to make a reference to the Camera. And there is two ways here.
Firstly there is a self made reference as show:

using blablabla
public class blaBla : Monobehavior
{
public Camera cam; //reference to camera

void MoveCameraFunction()
    {
        cam.transform.Translate(Vector3.up*speed) //move camera
    }
}

secondly, Unity already have a reference to the main camera. If you assign the camera with the tag “MainCamera” you can write the following code:

using blablabla
public class blaBla : Monobehavior
{
void MoveCameraFunction()
    {
        Camera.main.transform.Translate(xx * yy) //move main camera
    }
}