void StopVelocity() { if (playerMovement != null) { playerMovement.GetRigidbody().velocity = Vector3.zero; } if (lastEnemy != null) { lastEnemy.GetComponent <Rigidbody>().velocity = Vector3.zero; } }
void StopVelocity() { if (playerMovement != null) { playerMovement.GetRigidbody().velocity = Vector3.zero; } if (lastEnemy != null) { lastEnemy.GetComponent <Rigidbody>().velocity = Vector3.zero; } }