// Use this for initialization void Start() { firing = GetComponent <Firing>(); direction = GetComponent <Direction>(); lastTime = Time.realtimeSinceStartup; firingLastTime = Time.realtimeSinceStartup; }
// Use this for initialization void Start() { state = State.SEARCH; firing = GetComponent <Firing>(); direction = GetComponent <Direction>(); visibility = transform.Find("Vision").GetComponent <Visibility>(); lastTime = Time.realtimeSinceStartup; }