Exemple #1
0
    private float timeAwarded;  // A helper to stop the multiple calls to OnTriggerEnter and alot the reward only once

    private void Awake()
    {
        food = GetComponent <MoveWithPlayer>();
    }
Exemple #2
0
 private void Awake()
 {
     obstacle = GetComponent <MoveWithPlayer>();
 }