Inheritance: MonoBehaviour
Example #1
0
 // Use this for initialization
 void Start()
 {
     // skipCut = false;
     DontDestroyOnLoad(gameObject);
     camMove  = GetComponent <cameraMove>();
     fade     = GetComponent <fadeIn>();
     cutScene = GetComponent <cutSceneManager>();
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        if (fadeInFunc != null)
        {
            fadeInFunc();
        }

        if (Input.GetMouseButtonDown(0))
        {
            fadeInFunc = DoFadeIn;
        }
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     fade = Camera.main.GetComponent <fadeIn>();
     info = Camera.main.GetComponent <dontDestroyInfo>();
 }