ScreenChanger.Awake C# (CSharp) Method

Awake() protected method

protected Awake ( ) : void
return void
    protected override void Awake()
    {
        base.Awake();
        // Set the texture so that it is the the size of the screen and covers it.
        //GetComponent<GUITexture>().pixelInset = new Rect(0f, 0f, Screen.width, Screen.height);

        foreach (var texture in SubObjects)
        {
            texture.pixelInset = new Rect(Screen.width / 2f, Screen.height / 2f, 0, 0);
            texture.color = invisible;
        }

        SetActive(Statics.TimelineChanged);
    }