Advertisement
Shubhra_Sarker

Untitled

Jun 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Sense : MonoBehaviour {
  6. public float detectionRate = 1.0f;
  7.  
  8. protected float elapsedTime = 0.0f;
  9.  
  10. protected virtual void Initialize() { }
  11. protected virtual void UpdateSense() { }
  12.  
  13. // Use this for initialization
  14. void Start () {
  15. elapsedTime = 0.0f;
  16. Initialize();
  17. }
  18.  
  19. // Update is called once per frame
  20. void Update () {
  21. UpdateSense();
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement