Esempio n. 1
0
        public void Initialize(TargetProvider targetProvider, Transform vehicles, Transform turrets, PatrolContainer patrols)
        {
            dronePatrol    = patrols.DronePatrol;
            droneContainer = vehicles;

            targetProvider.RegisterController(this);
            InitializeDrones();
        }
        public void Initialize(TargetProvider targetProvider, Transform vehicles, Transform turretContainer, PatrolContainer patrols)
        {
            targetProvider.RegisterController(this);
            turrets = turretContainer.GetComponentsInChildren <SamAI>();

            foreach (var t in turrets)
            {
                t.Initialize();
            }
        }