先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
46 lines
891 B
C#
46 lines
891 B
C#
using UnityEngine;
|
|
|
|
public class DynamicBoneColliderBase : MonoBehaviour
|
|
{
|
|
public enum Direction
|
|
{
|
|
X, Y, Z
|
|
}
|
|
|
|
#if UNITY_5_3_OR_NEWER
|
|
[Tooltip("The axis of the capsule's height.")]
|
|
#endif
|
|
public Direction m_Direction = Direction.Y;
|
|
|
|
#if UNITY_5_3_OR_NEWER
|
|
[Tooltip("The center of the sphere or capsule, in the object's local space.")]
|
|
#endif
|
|
public Vector3 m_Center = Vector3.zero;
|
|
|
|
public enum Bound
|
|
{
|
|
Outside,
|
|
Inside
|
|
}
|
|
|
|
#if UNITY_5_3_OR_NEWER
|
|
[Tooltip("Constrain bones to outside bound or inside bound.")]
|
|
#endif
|
|
public Bound m_Bound = Bound.Outside;
|
|
|
|
public int PrepareFrame { set; get; }
|
|
|
|
public virtual void Start()
|
|
{
|
|
}
|
|
|
|
public virtual void Prepare()
|
|
{
|
|
}
|
|
|
|
public virtual bool Collide(ref Vector3 particlePosition, float particleRadius)
|
|
{
|
|
return false;
|
|
}
|
|
}
|