Unsure of setting instance of script

Hi, i’ve been following some 3dbuzz tutorials on 3rd person controllers, and I got a bit confused at this, I know this is creating an instance of the class to use in the script.

At one point in the tutorial they made a camera in code, but seeing as this script wasn’t attached to any objects, i’m not sure which part of this code makes it run?

Hoping someone could explain what this does?

public static tp_camera Instance;


	void Awake () {
	
		Instance = this;

	}

since this is public static it create instance of the camera and make sure you can access it from any where in the code. this way you don’t need getcomponent etc…

watch this to learn more about this: http://unity3d.com/learn/tutorials/modules/intermediate/scripting/statics