Exemplo n.º 1
0
    /// <summary>
    /// Sets up enemy and starts it on first segment of path
    /// </summary>
    public void SetupEnemy(float speed, int health, int reward)
    {
        Speed  = speed;
        Health = health;
        Reward = reward;

        SetupSegment(0);
        Healthbar.SetMax(Health);
        EnemyHit += Healthbar.EnemyHit;
    }