Example #1
0
    public void finishedSuperHit()
    {
        int i = 0;
        //return living enemies colliders
        var enemies = GameObject.FindGameObjectsWithTag("Enemy");

        foreach (var enemy in enemies)
        {
            var collider = enemy.GetComponent <Collider2D>();
            collider.enabled = true;
            //Debug.Log("iterating on enemy " + i + "\ndead status: " + enemy.GetComponent<IEnemy>().isDead());
            //Debug.Log("character strength is: " + playerStatsLogic.Strength );
            if (enemy.GetComponent <IEnemy>().isDead())
            {
                killEnemy(enemy);
            }
            i++;
        }
        playerStatsLogic.Strength = originalStr;
        movmentLogic.ResetRotation();
        movmentLogic.fallDown();
        touch.UnsetDisableMovment();
        animationLogic.UnSetDashing();
        Time.timeScale = 1f;
        LeanTween.resumeAll();
        playerStatsLogic.powerUpModeActive = PowerUpType.NONE;
    }
Example #2
0
 private void FinishedReturningFromFall()
 {
     touch.UnsetDisableMovment();
     character.GetComponent <Collider2D>().enabled = true;
     fallDown();
 }