Ejemplo n.º 1
0
    private void Awake()
    {
        FastPath.FastPath.DefaultMap = FastPath.FastPath.Generate(config);

        movement = new PhysicMovement();
        //movement.Inintialize(enemy.gameObject, 3);
        //movement.SetDestination(destination.position);
        enemy.ChangeMovementStrategy(movement);

        enemy.Initialize(new EnemySpawnerConfig.EnemyStats()
        {
            AttackDelay = .5f, Damage = 30, Defence = .3f, DistanceToAttack = 1, MaxHealth = 100, Speed = 3
        }, 123);
    }