Пример #1
0
 public ListInteractableObject()
 {
     _interactiveObjects = Object.FindObjectsOfType <InteractiveObject>();
 }
 //private SmartEnemyObject _smartEnemyes2= new SmartEnemyObject();
 //private Transform _playerTransform;
 public void Initialization()
 {
     //_playerTransform = ServiceLocatorMonoBehaviour.GetService<CharacterController>().transform;
     _smartEnemyes.AddRange(Object.FindObjectsOfType <SmartEnemyObject>());
     //_smartEnemyes2 = Object.FindObjectOfType<SmartEnemyObject>();
 }