// Update is called once per frame void Update() { off = ObjectLists.GetOff(); listSize = off.Count(); if (listSize == 0) { Debug.Log("EMPTY"); } else if (target == null) { target = off[Random.Range(0, listSize)]; currentName = target.name; nav.SetDestination(target.transform.position); } }