// ReSharper disable once UnusedMember.Local private void LateUpdate() { _interval += Time.deltaTime; if (_interval < GameCache.Instance.SpawnInterval) { return; } _interval = 0f; var controller = _cache.GetFromCache <MonsterController>(); controller.transform.position = transform.position; controller.Target = _moveTarget; controller.Resume(); }