示例#1
0
 public float GoalPlayerProximityMultiplier(float goalPlayerDistance, AIPersona forPersona)
 {
     return(Mathf.Lerp(1f, Mathf.Clamp(goalPlayerDistance, 3f, 20f) / 6f, forPersona.PlayerProximityImportance()));
 }
示例#2
0
 public float EnemyPlayerProximityMultiplier(float enemyPlayerDistance, AIPersona forPersona)
 {
     return(Mathf.Lerp(1f, Mathf.Clamp(enemyPlayerDistance, 1f, 10f) / 4f, forPersona.PlayerProximityImportance()));
 }