implemented skill system according to designdocuments

This commit is contained in:
2026-08-15 08:09:29 +02:00
parent f8def361fa
commit 063e94f6eb
95 changed files with 2924 additions and 4 deletions
@@ -0,0 +1,33 @@
using UnityEngine;
namespace NightclubArcadia.Skills
{
[RequireComponent(typeof(Collider))]
public sealed class CommentaryTrigger : MonoBehaviour
{
[SerializeField] string contextId;
[SerializeField] bool repeatable;
[SerializeField] string playerTag = "Player";
void OnTriggerEnter(Collider other)
{
if (string.IsNullOrEmpty(contextId))
{
return;
}
if (!string.IsNullOrEmpty(playerTag) && !other.CompareTag(playerTag))
{
return;
}
var runtime = SkillRuntime.Instance;
if (runtime == null || runtime.Commentary == null)
{
return;
}
runtime.Commentary.RequestCommentary(contextId, repeatable);
}
}
}