Files
Emberwild/Assets/GAME/Script/Player/HeldItems/HeldItemContext.cs
T
2026-06-22 16:18:34 +02:00

20 lines
712 B
C#

using UnityEngine;
namespace Ashwild.Player
{
/// <summary>
/// The player-side references a held item needs to interact with the world. Built
/// once on the player side and handed to each held-item prefab through Setup when
/// it is drawn, so a prefab (axe, food, ...) carries only its own logic and is
/// "linked" to the player at spawn instead of hunting for these refs itself.
/// </summary>
public class HeldItemContext
{
/// <summary>
/// Origin and forward of the aim ray (the camera), used by held items that
/// hit the world such as a tool harvesting or a weapon firing.
/// </summary>
public Transform RaycastOrigin;
}
}