コード例 #1
0
    public override void DealDamageToEnemy(EnemyHandler enemy)
    {
        Vector2 kickDirection = new Vector2(enemy.transform.position.x - GameData.playerMovement.transform.position.x, enemy.transform.position.y - GameData.playerMovement.transform.position.y).normalized;

        GameData.playerMovement.DisableControl(0.3f, false);
        enemy.TakeDamage(1, kickDirection * enemyKnockBackForce + addedEnemyKnockBack);
        GameData.playerGrapplingHandler.ReleaseHook();
    }