first commit

This commit is contained in:
2026-06-04 15:45:39 +03:00
commit e12fcea2e8
73 changed files with 9576 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
using UnityEngine;
public class DepthOfFieldController : MonoBehaviour
{
public bool IsFocusEnabled { get; private set; }
public Transform FocusTarget { get; private set; }
public void EnableFocus(Transform focusTarget)
{
IsFocusEnabled = true;
FocusTarget = focusTarget;
// In a project with Post Processing or URP Volume, enable Depth of Field here
// and update focus distance from the active camera to FocusTarget.
}
public void DisableFocus()
{
IsFocusEnabled = false;
FocusTarget = null;
// Disable the real Depth of Field override here when a post-processing stack is connected.
}
}