void Start() { //mBlur = Camera.main.gameObject.GetComponent<MotionBlur> (); //sManager = Camera.main.gameObject.GetComponent<Scare_Manager> (); mBlur = GameObject.FindWithTag("MainCamera").GetComponent <MotionBlur> (); sManager = GameObject.FindWithTag("MainCamera").GetComponent <Scare_Manager> (); mBlur.enabled = false; }
void Start() { sManager = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Scare_Manager> (); }