Add death animation

This commit is contained in:
RochesterX
2025-03-07 10:46:30 -05:00
parent 6528d1050f
commit c36f3b5a1a
8 changed files with 4000 additions and 230 deletions

View File

@@ -36,6 +36,7 @@ public class PlayerCameraMovement : MonoBehaviour
Vector3 playerAverage = Vector3.zero;
foreach (GameObject player in players)
{
if (player.GetComponent<Damageable>().dying) continue;
playerAverage += player.transform.position;
}
playerAverage /= players.Count;