Advertisement
Guest User

Untitled

a guest
Aug 25th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Sx=transform.scale[0];
  2. Sy=transform.scale[1];
  3. Rot=transform.rotation;
  4. cPos=transform.position
  5.  
  6. if ( ((Rot==90) && (Sx==100) && (Sy==-100)) || ((Rot==180) && (Sx==-100) && (Sy==-100)) || ((Rot==270) && (Sx==-100) && (Sy==100)) ) cPos + [0,0] else if ( ((Rot==0) && (Sx==-100) && (Sy==100)) || ((Rot==90) && (Sx==100) && (Sy==100)) || ((Rot==180) && (Sx==100) && (Sy==-100)) || ((Rot==270) && (Sx==-100) && (Sy==-100)) ) cPos + [14,0] else if ( ((Rot==0) && (Sx==100) && (Sy==-100)) || ((Rot==90) && (Sx==-100) && (Sy==-100)) || ((Rot==180) && (Sx==-100) && (Sy==100)) || ((Rot==270) && (Sx==100) && (Sy==100)) ) cPos + [0,14] else if ( ((Rot==0) && (Sx==-100) && (Sy==-100)) || ((Rot==90) && (Sx==-100) && (Sy==100)) || ((Rot==180) && (Sx==100) && (Sy==100)) || ((Rot==270) && (Sx==100) && (Sy==-100)) ) cPos + [14,14] else cPos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement