can only get component for one, or the other script.

when i use my code i can get GetComponent to work on MouseLook. when i use my code i can get GetComponent to work on AdForceMove.
if i try this in concession only the fist input button i hit will work.
why don’t they work in order that i hit input?

private var BowlingBall : GameObject;
function Start()
{
	var MouseLookScript : MouseLook;
	MouseLookScript = GetComponent (MouseLook); 
	var MoverScript : Mover;
	MoverScript = GetComponent (Mover);
	var AdForceMoveScript : AdForceMove;
	AdForceMoveScript = GetComponent (AdForceMove);
	//MoverScript.DoSomething ();
}

function Update()
{
	rigidbody.useGravity = false;
	var xMove : float = Input.GetAxis("Horizontal") * Time.deltaTime * 20;
	
	transform.Translate(Vector3(xMove,0,0));
	
	transform.position.x = Mathf.Clamp(transform.position.x, -2,2);
	Switch();
}

function Switch()
{
	if(Input.GetButton("p")) 
	{
		rigidbody.useGravity = false;
		GetComponent(MouseLook).enabled = true;
	    GetComponent(Mover).enabled = false;
		GetComponent(AdForceMove).enabled = false;
    }
	if(Input.GetButton("o")) 
    {
        GetComponent(AdForceMove).enabled = true;
        GetComponent(Mover).enabled = false;
        GetComponent(MouseLook).enabled = false;
    }
       
}

In both the conditions u r disabling the mover script, since the above posted script is in mover, it gets disabled after the line which disables it. A disabled script will not be executed

also this whole thing should be in a manager or something so that this doesn’t happen. To get the reference of the object in mover, you can declare a variable like var obj:Mover;
now attach the mover script to that slot in editor by dragging and dropping the object to it.

or you can find object by name GameObject.Find and get component from that game object and assign it to the obj from start()

if there will be multiple movers, I suppose u have to maintain different references or you can have one more script and attach to the same object tht handles enabling and disabling, because if there are 100s of movers it wont make sense to handle all those references…