protected void SetupSubject()
        {
            MockUpdatableAuth = new Mock<IUpdatable<UserAuthentication>>();

            _passwords = new Passwords();
            _translateUserUserAuth = new DataUserToAccountUserTranslator();

            _userAuthProvider = new UserAuthenticationProvider(
                _translateUserUserAuth
                , MockRetrievableUserByEmail.Object
                , MockRetrievableAuthyId.Object
                , MockUpdatableAuth.Object
                , MockCreatableAuth.Object
                , _passwords
                , MockDeletableAuth.Object);

            Subject = new UserAccountProvider(
                _userAuthProvider
                , MockCreateableUser.Object
                , MockRetrievableUserById.Object
                , MockRetrievableUserByEmail.Object
                , MockDeletableUser.Object
                , MockUpdateableUser.Object
                , _translateUserUserAuth
                , MockSystemTime.Object);
        }
Example #2
0
 internal NtxImport(string fileName, ITranslate t) : base(fileName)
 {
     m_Translator = t;
     m_Result     = new List <Feature>(1000);
     m_Index      = new SpatialIndex();
     m_KeyIndex   = new Dictionary <string, ForeignId>(1000);
 }
        public void CreateInstanceOfClass()
        {
            // just reference to GitUI
            MouseWheelRedirector.Active = true;

            var translatableTypes = TranslationUtl.GetTranslatableTypes();

            var testTranslation = new Dictionary <string, TranslationFile>();

            foreach (var types in translatableTypes)
            {
                var tranlation = new TranslationFile();
                foreach (Type type in types.Value)
                {
                    try
                    {
                        ITranslate obj = TranslationUtl.CreateInstanceOfClass(type) as ITranslate;
                        obj.AddTranslationItems(tranlation);
                        obj.TranslateItems(tranlation);
                    }
                    catch (Exception)
                    {
                        Trace.WriteLine("Problem with class: " + type.FullName);
                        throw;
                    }
                }

                testTranslation[types.Key] = tranlation;
            }
        }
 public override void Init(IEntity entity)
 {
     base.Init(entity);
     _transform = entity.GetComponent <ITranslateComponent>();
     _uiEvents  = entity.GetComponent <IUIEvents>();
     _uiEvents.MouseDown.Subscribe(onMouseDown);
 }
 public override void Init(IEntity entity)
 {
     base.Init(entity);
     _transform = entity.GetComponent<ITranslateComponent>();
     _uiEvents = entity.GetComponent<IUIEvents>();
     _uiEvents.MouseDown.Subscribe(onMouseDown);
 }
Example #6
0
        public AGSTranslateComponent(ITranslate translate)
        {
            _translate = translate;
            PropertyChangedEventHandler onPropertyChanged = (sender, e) => OnPropertyChanged(e);

            _translate.PropertyChanged += onPropertyChanged;
        }
Example #7
0
 public ProvideTips(IStore <DbChapter> chapters, ITranslate <Guid, TranslatedExpression> expressions, ITranslate <Guid, TranslatedWord> words, IUpdateStatsOnTipRequest tipStatsUpdater)
 {
     _chapters        = chapters;
     _expressions     = expressions;
     _words           = words;
     _tipStatsUpdater = tipStatsUpdater;
 }
 public override void Init()
 {
     base.Init();
     Entity.Bind <IWalkComponent>(c => _walk       = c, _ => _walk = null);
     Entity.Bind <IHasRoomComponent>(c => _hasRoom = c, _ => _hasRoom = null);
     Entity.Bind <ITranslateComponent>(c => _obj   = c, _ => _obj = null);
 }
 public Auth(PermissionContext context, IOptions <Audience> audience, IHashPass hashPass, ITranslate translate)
 {
     m_context   = context;
     m_audience  = audience;
     m_hashPass  = hashPass;
     m_translate = translate;
 }
Example #10
0
        public void GetPropertiesToTranslate()
        {
            translateCategories.Items.Clear();
            allCategories.Name = allText.Text;
            translateCategories.Items.Add(allCategories);

            string currentTranslation = GitCommands.Settings.Translation;

            try
            {
                //Set language to neutral to get neutral translations
                GitCommands.Settings.Translation = "";

                List <Type> translatableTypes = GetTranslatableTypes();

                foreach (Type type in translatableTypes)
                {
                    ITranslate obj = CreateInstanceOfClass(type) as ITranslate;
                    if (obj != null)
                    {
                        obj.AddTranslationItems(neutralTranslation);
                    }
                }
            }
            finally
            {
                neutralTranslation.Sort();
                translateCategories.Items.AddRange(neutralTranslation.GetTranslationCategories().ToArray());
                //Restore translation
                GitCommands.Settings.Translation = currentTranslation;
            }
        }
Example #11
0
        public static IList <TranslationItemWithCategory> LoadNeutralItems()
        {
            Translation neutralTranslation = new Translation();

            try
            {
                //Set language to neutral to get neutral translations
                GitCommands.AppSettings.CurrentTranslation = "";

                List <Type> translatableTypes = TranslationUtl.GetTranslatableTypes();
                foreach (Type type in translatableTypes)
                {
                    ITranslate obj = TranslationUtl.CreateInstanceOfClass(type) as ITranslate;
                    if (obj != null)
                    {
                        obj.AddTranslationItems(neutralTranslation);
                    }
                }
            }
            finally
            {
                neutralTranslation.Sort();

                //Restore translation
                GitCommands.AppSettings.CurrentTranslation = null;
            }

            IList <TranslationItemWithCategory> neutralItems =
                (from translationCategory in neutralTranslation.TranslationCategories
                 from translationItem in translationCategory.Body.TranslationItems
                 select new TranslationItemWithCategory(translationCategory.Name, translationItem)).ToList();

            return(neutralItems);
        }
Example #12
0
 public EvaluateSubmit(ICheckResult checker, IUpdateStatsOnSubmit stats, ITranslate <Guid, TranslatedExpression> translator, IStore <DbChapter> chapters)
 {
     _checker    = checker;
     _stats      = stats;
     _translator = translator;
     _chapters   = chapters;
 }
Example #13
0
        private Matrix4 getModelMatrix(IScale scale, IRotate rotate, ITranslate translate, IHasImage image,
                                       IJumpOffsetComponent jump, PointF areaScaling, PointF resolutionTransform, bool useCustomImageSize)
        {
            if (scale == null)
            {
                return(Matrix4.Identity);
            }
            float?customWidth = _customImageSize == null || !useCustomImageSize ?
                                _nullFloat : (_customImageSize.Value.Width * scale.ScaleX);
            float?customHeight = _customImageSize == null || !useCustomImageSize ?
                                 _nullFloat : (_customImageSize.Value.Height * scale.ScaleY);
            float  width        = (customWidth ?? scale.Width) * areaScaling.X * resolutionTransform.X;
            float  height       = (customHeight ?? scale.Height) * areaScaling.Y * resolutionTransform.Y;
            PointF pivotOffsets = GetPivotOffsets(image == null ? PointF.Empty : image.Pivot,
                                                  width, height);
            Matrix4 pivotMat = Matrix4.CreateTranslation(new Vector3(-pivotOffsets.X, -pivotOffsets.Y, 0f));
            Matrix4 scaleMat = Matrix4.CreateScale(new Vector3(scale.ScaleX * areaScaling.X,
                                                               scale.ScaleY * areaScaling.Y, 1f));
            float   radians     = rotate == null ? 0f : MathUtils.DegreesToRadians(rotate.Angle);
            Matrix4 rotationMat = Matrix4.CreateRotationZ(radians);
            float   x           = translate == null ? 0f : translate.X * resolutionTransform.X;
            float   y           = translate == null ? 0f : translate.Y * resolutionTransform.Y;

            if (jump != null)
            {
                x += jump.JumpOffset.X * resolutionTransform.X;
                y += jump.JumpOffset.Y * resolutionTransform.Y;
            }
            Matrix4 translateMat = Matrix4.CreateTranslation(new Vector3(x, y, 0f));

            return(scaleMat * pivotMat * rotationMat * translateMat);
        }
Example #14
0
        private void FillNeutralTranslation(Translation neutralTranslation)
        {
            try
            {
                //Set language to neutral to get neutral translations
                GitCommands.Settings.CurrentTranslation = "";
                Translate();

                List <Type> translatableTypes = TranslationUtl.GetTranslatableTypes();

                foreach (Type type in translatableTypes)
                {
                    ITranslate obj = CreateInstanceOfClass(type) as ITranslate;
                    if (obj != null)
                    {
                        obj.AddTranslationItems(neutralTranslation);
                    }
                }
            }
            finally
            {
                neutralTranslation.Sort();

                //Restore translation
                GitCommands.Settings.CurrentTranslation = null;
                Translate();
            }
        }
Example #15
0
 public override void Init(IEntity entity)
 {
     base.Init(entity);
     entity.Bind <ITranslateComponent>(c => _translate = c, _ => _translate = null);
     entity.Bind <IUIEvents>(c => c.MouseDown.Subscribe(onMouseDown), c => c.MouseDown.Unsubscribe(onMouseDown));
     entity.Bind <IDrawableInfoComponent>(c => _drawable = c, _ => _drawable = null);
 }
        public AppSettingEdit_ViewModel(ILogger Logger_, INavigationService NavigationService_, IDialogService DialogService_, ITranslate TranslateService_)
        {

            if (!IsInDesignMode)
            {
                Logger = Logger_;
                NavigationService = NavigationService_;
                DialogService = DialogService_;

                Languages = ViewModelLocator.Instance.Languages;
                LearningWordStrategies = new ObservableCollection<LearningWordStrategy>(ViewModelLocator.Instance.DataBase.Set<LearningWordStrategy>().ToList());
            }
            
            CommandDispatcher = new RelayCommand<string>(CmdDispatcher);

            if (IsInDesignMode)
            {
                Languages = new ObservableCollection<Language>();
                Languages.Add(new Language() {Code="en",Name="English"});
                Languages.Add(new Language() {Code="ru",Name="Русский"});
                Languages.Add(new Language() {Code="ua",Name="Українська мова"});

                Languages[0].DictionariesCollection.Add(new Dictionary {name="First dictionary" });
                Languages[0].DictionariesCollection.Add(new Dictionary {name="Ordinary dict" });
                Languages[0].DictionariesCollection.Add(new Dictionary {name="My dictionary" });

                CurrentLanguage = Languages[0];
            }

        }
Example #17
0
 public static void Translate(ITranslate obj, string translationName)
 {
     ITranslation translation = GetTranslation(translationName);
     if (translation == null)
         return;
     obj.TranslateItems(translation);
 }
Example #18
0
		public override void Init (IEntity entity)
		{
			base.Init (entity);
            _follower = entity;
			_walk = entity.GetComponent<IWalkBehavior>();
			_hasRoom = entity.GetComponent<IHasRoom> ();
			_obj = entity.GetComponent<ITranslateComponent> ();
		}
Example #19
0
 public DataController(IWeather weather, IToDoList toDoList, IEngWord engword, ITranslate translate, INews news)
 {
     _Weather   = weather;
     _ToDoList  = toDoList;
     _EngWord   = engword;
     _Translate = translate;
     _News      = news;
 }
Example #20
0
 internal NtxImport(string fileName, ITranslate t)
     : base(fileName)
 {
     m_Translator = t;
     m_Result = new List<Feature>(1000);
     m_Index = new SpatialIndex();
     m_KeyIndex = new Dictionary<string, ForeignId>(1000);
 }
Example #21
0
 public override void Init(IEntity entity)
 {
     base.Init(entity);
     _follower = entity;
     entity.Bind <IWalkComponent>(c => _walk       = c, _ => _walk = null);
     entity.Bind <IHasRoomComponent>(c => _hasRoom = c, _ => _hasRoom = null);
     entity.Bind <ITranslateComponent>(c => _obj   = c, _ => _obj = null);
 }
    public void Setup()
    {
        _bufferSize = 256;
        _buffer     = new byte[_bufferSize];

        _serialPort = GetMockSerialPort();
        _translator = GetMockTranslator();
    }
Example #23
0
 public override void Init(IEntity entity)
 {
     base.Init(entity);
     _follower = entity;
     _walk     = entity.GetComponent <IWalkBehavior>();
     _hasRoom  = entity.GetComponent <IHasRoom> ();
     _obj      = entity.GetComponent <ITranslateComponent> ();
 }
Example #24
0
 internal RuntimeHostSurface(IServiceProvider parentProvider, ITranslate translate)
     : base(parentProvider)
 {
     AddService(typeof(ITranslate), translate);
     runtimeMenuService = new RuntimeMenuService(this);
     AddService(typeof(IMenuCommandService), runtimeMenuService);
     InitPropHandlingDictionary();
 }
Example #25
0
 public ChapterImporter(IStore <DbTranslatedChapter> translatedChapters, IStore <DbChapter> chapters, IStore <DbExpression> expressions, IStore <DbWord> words, ITranslate <Guid, TranslatedExpression> exprTranslator, ITranslate <Guid, TranslatedWord> wordTranslator)
 {
     _translatedChapters = translatedChapters;
     _chapters           = chapters;
     _expressions        = expressions;
     _words          = words;
     _exprTranslator = exprTranslator;
     _wordTranslator = wordTranslator;
 }
Example #26
0
        public ucMt()
        {
            InitializeComponent();

            // 1) 获取 ITranslate 翻译功能接口
            //_trans = AsrLibrary.TranslateFun.GetTranslate();
            _trans = AsrProxy.TranslateFun.GetTranslate();

            cmbTo.SelectedIndex = 0;
        }
Example #27
0
 public override void Init()
 {
     base.Init();
     Entity.Bind <IAnimationComponent>(c => _animation         = c, _ => _animation = null);
     Entity.Bind <ITranslateComponent>(c => _translate         = c, _ => _translate = null);
     Entity.Bind <IOutfitComponent>(c => _outfit               = c, _ => _outfit = null);
     Entity.Bind <IHasRoomComponent>(c => _room                = c, _ => _room = null);
     Entity.Bind <IDrawableInfoComponent>(c => _drawable       = c, _ => _drawable = null);
     Entity.Bind <IFaceDirectionComponent>(c => _faceDirection = c, _ => _faceDirection = null);
 }
Example #28
0
        public static void Translate(ITranslate obj, string translationName)
        {
            ITranslation translation = GetTranslation(translationName);

            if (translation == null)
            {
                return;
            }
            obj.TranslateItems(translation);
        }
Example #29
0
 public static void Translate(ITranslate obj, string translationName)
 {
     var translation = GetTranslation(translationName);
     if (translation.Count == 0)
         return;
     foreach (var pair in translation)
     {
         obj.TranslateItems(pair.Value);
     }
 }
        public GitExtensionsControlInitialiser(GitExtensionsControl control)
        {
            if (IsDesignMode)
            {
                return;
            }

            ThreadHelper.ThrowIfNotOnUIThread();
            control.Load += LoadHandler;
            _translate    = control;
        }
Example #31
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            textBoxRes.Clear();

            ITranslate choise_item = factory.GetFactoryItem(selectedItem);

            output.WriteLine($"{choise_item.ToString()} selected \n");
            output.WriteLine(" Set Dictionary to Mobile... \n");
            output.WriteLine(" Start translating... \n");
            choise_item.Translate("test");
        }
        public GitExtensionsControlInitialiser(GitExtensionsFormBase form)
        {
            if (IsDesignMode)
            {
                return;
            }

            ThreadHelper.ThrowIfNotOnUIThread();
            form.Load += LoadHandler;
            _translate = form;
        }
Example #33
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="orgString"></param>
        /// <returns></returns>
        internal static String GetTranslatedString(RuntimeHostSurface runtimeHostSurface, String orgString)
        {
            String     retString = orgString;
            ITranslate host      = (ITranslate)runtimeHostSurface.GetService(typeof(ITranslate));

            if (host != null)
            {
                retString = host.GetTranslateString(orgString);
            }

            return(retString);
        }
Example #34
0
        public static void Translate(ITranslate obj, string translationName)
        {
            var translation = GetTranslation(translationName);

            if (translation.Count == 0)
            {
                return;
            }
            foreach (var pair in translation)
            {
                obj.TranslateItems(pair.Value);
            }
        }
 public SocialConnectedRenderingController(
     SocialConnectedSettings settings,
     IPageContext pageContext,
     IRenderingContext renderingContext,
     IAuthenticationManager authenticationManager,
     ITranslate translate)
 {
     _settings = settings;
     _pageContext = pageContext;
     _renderingContext = renderingContext;
     _authenticationManager = authenticationManager;
     _translate = translate;
 }
 public GitExtensionsControlInitialiser(GitExtensionsControl control)
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     control.Font  = AppSettings.Font;
     control.Load += delegate
     {
         if (!_initialiseCompleteCalled && !IsDesignModeActive)
         {
             throw new Exception($"{control.GetType().Name} must call {nameof(InitializeComplete)} in its constructor, ideally as the final statement.");
         }
     };
     _translate = control;
 }
        //public RelayCommand<WordOfDictionary> SpeechItem_Command { get; private set; }


        public DictionaryEditor_ViewModel(ILogger Logger_, INavigationService NavigationService_, IDialogService DialogService_, ITranslate TranslateService_)
        {
            Logger = Logger_;
            NavigationService = NavigationService_;
            DialogService = DialogService_;

            //SpeechItem_Command = new RelayCommand<WordOfDictionary>(SpeechItem_Cmd);

            if (IsInDesignMode)
            {

            }

        }
        public TranslationEditor_ViewModel(ILogger Logger_, INavigationService NavigationService_, IDialogService DialogService_, ITranslate TranslateService_)
        {
            Logger = Logger_;
            NavigationService = NavigationService_;
            DialogService = DialogService_;
            Files = new ObservableCollection<string>();
            CommandDispatcher = new RelayCommand<string>(CmdDispatcher);

            if (IsInDesignMode)
            {
                Files.Add(Environment.CurrentDirectory);
                Files.Add(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
            }

        }
        public SubWordEditor_ViewModel(ILogger Logger_, INavigationService NavigationService_, IDialogService DialogService_, ITranslate TranslateService_)
        {
            Logger = Logger_;
            NavigationService = NavigationService_;
            DialogService = DialogService_;

            CommandDispatcher = new RelayCommand<string>(CmdDispatcher);

            if (IsInDesignMode)
            {
                Word = new SubtitleItem.Word();
                Word.word = "Test";
            }

        }
Example #40
0
        public OcrTranslateOverlay(ITranslate translate, IOverlay internalOverlay, IScreenImageProvider screenImageProvider, IOcr ocr,
                                   IOcrTranslateOverlayConfiguration ocrTranslateOverlayConfiguration, ILogger <OcrTranslateOverlay> log)
        {
            _translate           = translate;
            _internalOverlay     = internalOverlay;
            _screenImageProvider = screenImageProvider;
            _ocr = ocr;
            _ocrTranslateOverlayConfiguration = ocrTranslateOverlayConfiguration;
            _log = log;

            if (_ocrTranslateOverlayConfiguration.CaptureArea == null)
            {
                throw new ArgumentNullException(nameof(_ocrTranslateOverlayConfiguration.CaptureArea), "Screen capture area was not configured");
            }
        }
Example #41
0
		public AGSSprite (Resolver resolver, IMaskLoader maskLoader)
		{
            _maskLoader = maskLoader;
            _resolver = resolver;

            //todo: abstract it to the constructor
            _translate = new AGSTranslate();
            _hasImage = new AGSHasImage();
            _hasImage.Anchor = new PointF();                        
            _rotate = new AGSRotate();

            ScaleX = 1;
            ScaleY = 1;
            _hasImage.OnImageChanged.Subscribe((sender, args) => ScaleBy(ScaleX, ScaleY));
        }
Example #42
0
 /// <summary>
 ///     Construtor.
 /// </summary>
 /// <param name="console">Define as cores padrão no console.</param>
 /// <param name="translate">Manipula traduções de texto.</param>
 /// <param name="loaderAssembly">Carregador de assembly em disco para a memória.</param>
 /// <param name="multipleInput">Gerencia múltiplos IInput.</param>
 /// <param name="multipleOutput">Gerencia múltiplos IOutput.</param>
 /// <param name="multipleModule">Gerencia múltiplos IModule.</param>
 public Engine(
     IConsole console,
     ITranslate translate,
     ILoaderAssembly loaderAssembly,
     IMultipleInput multipleInput,
     IMultipleOutput multipleOutput,
     IMultipleModule multipleModule)
 {
     _console        = console;
     _translate      = translate;
     _loaderAssembly = loaderAssembly;
     _multipleInput  = multipleInput;
     _multipleOutput = multipleOutput;
     _multipleModule = multipleModule;
 }
        public ListOfWordsOfDictionary_ViewModel(ILogger Logger_, INavigationService NavigationService_, IDialogService DialogService_, ITranslate TranslateService_)
        {
            Logger = Logger_;
            NavigationService = NavigationService_;
            DialogService = DialogService_;
            CommandDispatcher = new RelayCommand<string>(CmdDispatcher);

            if (IsInDesignMode)
            {
                ListOfWords = new ObservableCollection<WordOfDictionary>();
                ListOfWords.Add(new WordOfDictionary { word = "Hello" });
                ListOfWords.Add(new WordOfDictionary { word = "White"});
                ListOfWords.Add(new WordOfDictionary { word = "to run"});
            }

        }
 public UserAuthenticationProvider(
     ITranslate<User, UserAccount> translateDataUserToUserAccount, 
     IRetrievable<ByUserEmail, User> retrieveUserByEmail, 
     IBulkRetrievable<ByEncodedUserId, UserAuthentication> retrieveAllUserAuthenticationByEncodedUserId, 
     IUpdatable<UserAuthentication> userAuthUpdater, 
     ICreatable<UserAuthentication> userAuthCreator, 
     IPasswords passwords, 
     IDeletable<UserAuthentication> userAuthDeleter)
 {
     _translateDataUserToUserAccount = translateDataUserToUserAccount;
     _retrieveUserByEmail = retrieveUserByEmail;
     _retrieveAllUserAuthenticationByEncodedUserId = retrieveAllUserAuthenticationByEncodedUserId;
     _userAuthUpdater = userAuthUpdater;
     _userAuthCreator = userAuthCreator;
     _passwords = passwords;
     _userAuthDeleter = userAuthDeleter;
 }
 public UserAccountProvider(
     IUserAuthenticationProvider userAuthProvider, 
     ICreatable<User> userCreator, 
     IRetrievable<ByUserId, User> userGetByUserId, 
     IRetrievable<ByUserEmail, User> retrieveUserByEmail, 
     IDeletable<User> userDeleter, 
     IUpdatable<User> userUpdater, 
     ITranslate<User, UserAccount> translateDataUserToUserAccount, 
     ISystemTime systemTime)
 {
     _userAuthProvider = userAuthProvider;
     _userCreator = userCreator;
     _userGetByUserId = userGetByUserId;
     _retrieveUserByEmail = retrieveUserByEmail;
     _userDeleter = userDeleter;
     _userUpdater = userUpdater;
     _translateDataUserToUserAccount = translateDataUserToUserAccount;
     _systemTime = systemTime;
 }
        public Dictionary_ViewModel(ILogger Logger_, INavigationService NavigationService_, IDialogService DialogService_, ITranslate TranslateService_)
        {
            if (!IsInDesignMode)
            {
                Logger = Logger_;
                NavigationService = NavigationService_;
                DialogService = DialogService_;
                TranslateService = TranslateService_;
                Languages = ViewModelLocator.Instance.Languages;

                SpeechItem_Command = new RelayCommand<WordOfDictionary>(SpeechItem_Cmd);
            }


            if (IsInDesignMode)
            {
                Dictionary = new Dictionary();
                Dictionary.Words.Add(new WordOfDictionary { word="Hello",transcription="hello"});
                Dictionary.Words.Add(new WordOfDictionary { word="day",transcription="day"});

            }

        }
        public void InitializeProvider()
        {
            _passwords = new Passwords();
            _translateUserUserAuth = new DataUserToAccountUserTranslator();

            _userAuthProvider = new UserAuthenticationProvider(
                _translateUserUserAuth
                , _mockRetrievableUserByEmail.Object
                , _mockRetrievableAuthyId.Object
                , _mockUpdatableAuth.Object
                , _mockCreatableAuth.Object
                , _passwords
                , _mockDeletableAuth.Object);

            _subject = new UserAccountProvider(
                _userAuthProvider
                , _mockCreateableUser.Object
                , _mockRetrievableUserById.Object
                , _mockRetrievableUserByEmail.Object
                , _mockDeletableUser.Object
                , _mockUpdateableUser.Object
                , _translateUserUserAuth
                , _mockSystemTime.Object);
        }
 public AGSTranslateComponent(ITranslate transform)
 {
     _translate = transform;
 }
		public override void Init(IEntity entity)
		{
			base.Init(entity);
			_obj = entity.GetComponent<IAnimationContainer>();
            _transform = entity.GetComponent<ITranslateComponent>();
		}