Exemplo n.º 1
0
    public void ChangeLevel()
    {
        y = y + 1;
        Vector2    pos  = gameObject.transform.position;
        Quaternion quar = gameObject.transform.rotation;

        tal.CheckPlayer();
        if (y < 6)
        {
            Debug.Log(y);
            Debug.Log(LevelGoes[y]);
            ps.CreateHero(LevelGoes[y], pos, quar, y, Level, bonusHealth, bonusDamage, BonusHealthRegen, bonusExp, bonusThirst, move.bonusSpeed, move.bonusRotateSpeed, shoot.bonusFireRate, chanceAvoid, Exp, Health / MaxHealth, bonusBlidam);
            Debug.Log(Health / MaxHealth);
        }
        Destroy(gameObject);
    }