Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sx=transform.scale[0];
- Sy=transform.scale[1];
- Rot=transform.rotation;
- cPos=transform.position
- 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