17 lines
605 B
C#
17 lines
605 B
C#
using UnityEngine;
|
|
namespace IndianOceanAssets.Engine2_5D
|
|
{
|
|
// Handles shooting projectiles towards mouse click position
|
|
public class ProjectileShooter : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject projectilePrefab; // Prefab for the projectile to shoot
|
|
[SerializeField] private KeyCode attackKeyCode; // Key to trigger shooting
|
|
[SerializeField] private LayerMask groundLayer; // Layer to detect ground for aiming
|
|
|
|
// Called once per frame
|
|
void Update()
|
|
{
|
|
// 攻击输入已移除(由灵灯系统替代)
|
|
}
|
|
}
|
|
} |