Ejemplo n.º 1
0
    private void TranslateThatPlayerUnderstend()
    {
        string source = DialogController.GetDialog().GetData().longDescritorin;

        string translate = TranslateSystem.TranslateToPolishByWords(source, PlayerData.knowWords);

        controller.SetLongDescription(translate);
    }
Ejemplo n.º 2
0
    private void TranslatePartThatPlayerUnderstend()
    {
        string source = DialogController.GetDialog().GetData().longDescritorin;

        List <Word> words = new List <Word>();

        for (int i = 0; i < PlayerData.knowWords.Count; i++)
        {
            if (Random.Range(0, 100) <= 30)
            {
                words.Add(PlayerData.knowWords[i]);
            }
        }

        string translate = TranslateSystem.TranslateToPolishByWords(source, words);

        controller.SetLongDescription(translate);
    }
Ejemplo n.º 3
0
    // private TestToRenameIfWork testToRenameIfWork;
    protected override void OnCreate()
    {
        var world = World.DefaultGameObjectInjectionWorld;

        translateSystem = world.GetOrCreateSystem <TranslateSystem>();
        rotateSystem    = world.GetOrCreateSystem <RotateSystem>();
        projectileHitDetectionSystem = world.GetOrCreateSystem <ProjectileHitDetectionSystem>();
        //pathFinding = world.GetOrCreateSystem<PathFinding>();
        pathFollowSystem = world.GetOrCreateSystem <PathFollowSystem>();
        // testToRenameIfWork = world.GetOrCreateSystem<TestToRenameIfWork>();
        enemyFollowSystem = world.GetOrCreateSystem <EnemyFollowSystem>();

        var transform = world.GetOrCreateSystem <TransformSimulationManager>();

        transform.AddSystemToUpdateList(translateSystem);
        transform.AddSystemToUpdateList(rotateSystem);
        transform.AddSystemToUpdateList(projectileHitDetectionSystem);
        //transform.AddSystemToUpdateList(pathFinding);
        transform.AddSystemToUpdateList(pathFollowSystem);
        //transform.AddSystemToUpdateList(testToRenameIfWork);
        transform.AddSystemToUpdateList(enemyFollowSystem);

        transform.SortSystemUpdateList();
    }