20 lines
712 B
C#
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;
|
|
}
|
|
}
|