private float timeAwarded; // A helper to stop the multiple calls to OnTriggerEnter and alot the reward only once private void Awake() { food = GetComponent <MoveWithPlayer>(); }
private void Awake() { obstacle = GetComponent <MoveWithPlayer>(); }