Added blood effect & hurt anim controller

This commit is contained in:
DraiRuben
2026-05-11 14:28:46 +02:00
parent 5021c59748
commit be46d7e8e0
306 changed files with 248854 additions and 10 deletions
@@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BFX_RenderDepth : MonoBehaviour
{
DepthTextureMode defaultMode;
void OnEnable()
{
var cam = GetComponent<Camera>();
defaultMode = cam.depthTextureMode;
if (cam.renderingPath == RenderingPath.Forward)
{
cam.depthTextureMode |= DepthTextureMode.Depth;
}
}
// Update is called once per frame
void OnDisable()
{
GetComponent<Camera>().depthTextureMode = defaultMode;
}
}