Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Sense : MonoBehaviour {
- public float detectionRate = 1.0f;
- protected float elapsedTime = 0.0f;
- protected virtual void Initialize() { }
- protected virtual void UpdateSense() { }
- // Use this for initialization
- void Start () {
- elapsedTime = 0.0f;
- Initialize();
- }
- // Update is called once per frame
- void Update () {
- UpdateSense();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement