Пример #1
0
    public void checkMovment()
    {
        _enemy.killGround();
        _enemy.setDynamic();
        if (Math.Abs(enemyTransform.position.x - enemyModel.getX1()) < 0.9)
        {
            enemyModel.setPos(enemyModel.getX2());
            enemyModel.setSign(1);
        }
        else
        {
            enemyModel.setPos(enemyModel.getX1());

            enemyModel.setSign(-1);
        }
    }