Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
closed #13 closed #14
  • Loading branch information
Delivery-Klad committed Oct 24, 2021
1 parent eaf25ab commit 3e5cdcf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Assets/Materials/mat.mat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Materials/transMat.mat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Assets/Prefabs/Surguch.prefab

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions Assets/Scripts/StampHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ private void Update()
SteamVR_Input_Sources source = interactable.attachedToHand.handType;
if (OpenAction[source].stateDown && LetterAnimator.GetBool("Open") == false)
{
LetterAnimator.SetBool("Open", true);
Open();
}
else if (OpenAction[source].stateDown && LetterAnimator.GetBool("Open") == true)
{
LetterAnimator.SetBool("Close", true);
Close();
}
}
if (Input.GetKeyDown(KeyCode.O))
{
Open();
}
if (Input.GetKeyDown(KeyCode.P))
{
Close();
}
}

public void Open()
Expand Down

0 comments on commit 3e5cdcf

Please sign in to comment.