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