Fader.Awake C# (CSharp) Method

Awake() static private method

static private Awake ( ) : void
return void
	void Awake(){
		if (Screen == null && GetComponent<Image>() != null) {
			Screen = gameObject.GetComponent<Image>();
		} else {
			Destroy (this);
		}
	}