projectEli/Assets/NeoFPS/Core/Surfaces/SimpleSurface.cs

27 lines
704 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NeoFPS.Constants;
namespace NeoFPS
{
[HelpURL("https://docs.neofps.com/manual/surfacesref-mb-simplesurface.html")]
public class SimpleSurface : BaseSurface
{
[SerializeField, Tooltip("The surface material ID.")]
private FpsSurfaceMaterial m_Surface = FpsSurfaceMaterial.Default;
public override FpsSurfaceMaterial GetSurface ()
{
return m_Surface;
}
public override FpsSurfaceMaterial GetSurface (RaycastHit hit)
{
return m_Surface;
}
public override FpsSurfaceMaterial GetSurface (ControllerColliderHit hit)
{
return m_Surface;
}
}
}