10 lines
237 B
C#
10 lines
237 B
C#
using UnityEngine;
|
|
|
|
public class Odorant : MonoBehaviour {
|
|
public float strength = 1;
|
|
|
|
public float StrengthAt(float distance) {
|
|
float intensity = this.strength * (1 / distance);
|
|
return intensity;
|
|
}
|
|
} |