ScreenFade Help

Hi All,

Im having some trouble getting a screenfade to work.

I have a rawimage named FadeImg with a texture on it.

The ScreenFader script is attached to main camera

and i have a second script on main camera to call the fade and move onto next scene:

using UnityEngine;
using System.Collections;

public class introskip : MonoBehaviour {

    ScreenFader fadeScr;
    public int SceneNumb;


    void Awake()
    {
        fadeScr = GameObject.FindObjectOfType<ScreenFader>();
    }

    // Use this for initialization
    IEnumerator Start () {
        yield return new WaitForSeconds(10);
        fadeScr.EndScene("Intro");
        Application.LoadLevel ("Title");  }
   
    // Update is called once per frame
    void Update () {
        if (Input.anyKey)
            fadeScr.EndScene("Intro");
        Application.LoadLevel("Title"); }
}

I keep getting this error:

The type or namespace name ‘ScreenFader’ could not be found (are you missing a using directive or an assembly reference?)

Anyone able to offer any suggestions as to why it isnt working?

Many thanks!

so i just re-applied all the scripts and changed zero code then all of a sudden it worked. So infuriating!