Example #1
0
    protected void Awake()
    {
        m_SceneMgr = SceneManager.Instance;
        if( !m_SceneMgr )
        {
            DebugUtil.LogError( "Cleanup requires a scene manager." );
            this.enabled = false;
            return;
        }

        Camera camera = GetComponent< Camera >() as Camera;
        if( camera )
        {
            camera.backgroundColor = m_SceneMgr.GetTransitionColor();
        }
    }