예제 #1
0
    // overrides

    public override void AssociateWithComponent(object obj)
    {
        base.AssociateWithComponent(obj);
        mComponent = (Camera)obj;

        if (mComponent.clearFlags == CameraClearFlags.Skybox)
        {
            var skyboxComponent = mComponent.gameObject.GetComponent <Skybox>();
            if (skyboxComponent != null)
            {
                _skybox = new GooSkybox(skyboxComponent);
            }
        }
    }
예제 #2
0
    public GLexData()
    {
        Instance = this;

        GLexMaterial.Reset();
        GLexMesh.Reset();
        GLexTexture.Reset();
        GLexShader.Reset();
        GLexSkinnedMeshRenderer.Reset();
        GLexBone.Reset();
        GLexAnimation.Reset();
        GLexAnimationClip.Reset();
        GLexAnimationState.Reset();
        GooSkybox.Reset();
        GLexAudioSource.Reset();
        GooSkeleton.Reset();


        mGLexGameObjects    = new List <GLexGameObject>();
        mGLexTopGameObjects = new List <GLexGameObject>();
        mGLexComponents     = new List <GLexComponent>();
    }
    // overrides
    public override void AssociateWithComponent(object obj)
    {
        base.AssociateWithComponent(obj);
        mComponent = (Camera)obj;

        if (mComponent.clearFlags == CameraClearFlags.Skybox) {
            var skyboxComponent = mComponent.gameObject.GetComponent<Skybox>();
            if (skyboxComponent != null) {
                _skybox = new GooSkybox(skyboxComponent);
            }
        }
    }