14 lines
312 B
C#

using UnityEngine;
namespace Passer.CreatureControl {
public class Odorant : MonoBehaviour {
public float strength = 1;
public float StrengthAt(float distance) {
float intensity = this.strength * (1 / distance);
return intensity;
}
}
}