private void FixedUpdate() { if (reactorToPoint == null) { Destroy(gameObject); } else { transform.rotation = Quaternion.Euler(new Vector3(0, 0, AimScript.GetAngleToAim(reactorToPoint.position, transform.position, -90))); } }
private void FixedUpdate() { transform.rotation = Quaternion.Euler(new Vector3(0, 0, AimScript.GetAngleToAim(mousePos, transform.position, -90))); }