private void DoGetMaterial()
    {
        GameObject ownerDefaultTarget = base.Fsm.GetOwnerDefaultTarget(this.gameObject);

        if (ownerDefaultTarget != null)
        {
            RenderToTexture component = ownerDefaultTarget.GetComponent <RenderToTexture>();
            if (component == null)
            {
                this.LogError("Missing RenderToTexture component!");
            }
            else
            {
                this.material.Value = component.GetRenderMaterial();
            }
        }
    }