Question by
Drymarti111 · Sep 30, 2017 at 05:32 PM ·
2dpositionfreeze
Freeze 2D GameObject
Hello! I need help with Freeze with positions X,Y,Z when the int=-1 I have this code:
(...)
public GameObject ObjectToFreeze;
public int DimensionHelp = 1;
(...)
if (DimensionHelp == -1) {
//AND HERE I NEED TO FREEZE PLAYER(MyGameObject) WITH X,Y,Z IN 2D
}
What can I do?
and how to unfreeze player if(Input.GetKeyDown....)? anyone?
Comment
Your answer
Follow this Question
Related Questions
How can i change the position of my shot ? 1 Answer
Position changing though set position code running 1 Answer
Collider and Rigidbody Problem 1 Answer
Game Object doesn't instantiate at Mouse Position 3 Answers
Buttons move and change size when start game,Button object moves when game start 1 Answer