Example #1
0
    public void KillEnemy()
    {
        enemySpawner.CountEnemyAsScore(enemyPerPoint);
        enemySpawner.MovementSpeedController();
        Rigidbody rigidbody = gameObject.GetComponent <Rigidbody>();

        enemyMovement.isRunning = false;
        rigidbody.isKinematic   = false;
        Destroy(gameObject, durationTillDestroyed);
    }