Example #1
0
    void Start()
    {
        SetHitPointext(currentHitPoint);
        SetLevelText(currentLevel);

        main.IsEnemyDead = false;

        shakeButton = GetComponent <ShakeButton>();
        shakeButton.EnableShake();
    }
Example #2
0
    void Respawn()
    {
        currentLevel += 1;
        SetLevelText(currentLevel);

        currentHitPoint = baseHitPoint * currentLevel;
        SetHitPointext(currentHitPoint);

        shakeButton.EnableShake();

        isDead = false;

        main.IsEnemyDead = false;
        gameObject.SetActive(true);
    }