public void StopPerforming() { // Check if is perfoming if (!performing) { return; } else { performing = false; } Vector3 dir = GameManager.Camera.GetWorldPositionOnPlane(GameManager.Player.lastMousePosition, 0) - transform.position; dir.Normalize(); RemoveSlows(); creature.Bounce(dir); teleportGraphs.SetActive(false); knockForce.Name = "teleportknockback"; Force f = new Force(knockForce); f.ForceApplied = dir * -1 * knockForce.ForceToApply; f.ActualForce = dir * -1 * knockForce.ForceToApply; playerMotor.AddForce(f); }