Пример #1
0
    // 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>();
        }
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     fogMaterial = fogObject.GetComponent <Renderer>().material;
     //fogObject = GameObject.FindGameObjectWithTag("FogOfWar");
     fogScript = fogObject.GetComponent <AAL_FogPriority>();
 }