Moved player detection to external script

This commit is contained in:
Marco 2025-02-04 10:03:04 +01:00
commit d8e1459194
8 changed files with 237 additions and 69 deletions

View file

@ -0,0 +1,17 @@
using Godot;
using Godot.Collections;
namespace Cirno.Scripts.Components;
public partial class PlayerDetection : Area2D
{
public InteractionController CachedPlayer => _cachedPlayer;
protected InteractionController _cachedPlayer;
public virtual bool IsPlayerInRange { get; set; }
public virtual bool IsPlayerInSight(uint collisionMask)
{
return false;
}
}