public override Vector2 GetScreenPosition() { if (DpnUICamera.instance != null) { return(DpnUICamera.instance.centerCamera.WorldToScreenPoint(transform.position)); } else { return(DpnCameraRig.WorldToScreenPoint(transform.position)); } }
public Vector2 GetScreenPosition() { return(DpnCameraRig.WorldToScreenPoint(transform.position)); }