// Use this for initialization void Start() { mainCamera = GameObject.FindGameObjectWithTag("MainCamera"); camFollow = mainCamera.GetComponent <CameraFollow>(); postProcessingBehaviour = mainCamera.GetComponent <PostProcessingBehaviour>(); playerMove = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>(); if (GetComponent <AAL_FogPriority>() != null) { fog = GetComponent <AAL_FogPriority>(); } }
// Use this for initialization void Start() { fogMaterial = fogObject.GetComponent <Renderer>().material; //fogObject = GameObject.FindGameObjectWithTag("FogOfWar"); fogScript = fogObject.GetComponent <AAL_FogPriority>(); }