📜  检查到游戏对象的距离 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.608000             🧑  作者: Mango

代码示例1
/// 
/// Return distance between two points
/// 
/// 
/// 
/// 
public float CheckDistanceTwoPoints(Vector3 target, Vector3 startPos)
{
    return Vector3.Distance(target, startPos);
}