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