Skip to content

Commit

Permalink
Changed one of the comments so it explains usage better
Browse files Browse the repository at this point in the history
  • Loading branch information
LDMONTY007 committed Oct 20, 2022
1 parent f41ab4a commit b00ebe7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# Visual Studio cache directory
.vs/

# Visual Studio SLN config
*.VSCONFIG

# Gradle cache directory
.gradle/

Expand All @@ -47,6 +50,7 @@ ExportedObj/
*.opendb
*.VC.db


# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
Expand Down
6 changes: 6 additions & 0 deletions Assets/PlayerMovement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ void Update()

#region bool control
doJump |= (jumpAction.GetButtonDown() && jumpCount > 0 && !jumping); //We use |= because we want doJump to be set from true to false
//This ^ Operator is the or equals operator, it's kind of hard to explain so hopefully I explain this correctly,
//Basically its saying this : doJump = doJump || (jumpAction.GetButtonDown() && jumpCount > 0 && !jumping)
//Which is too say, if doJump is already true we return true otherwise we check (jumpAction.GetButtonDown() && jumpCount > 0 && !jumping)
//The reason we do this is because the only time we want doJump = false is when we directly set it later in the code after we
//call the jump function. So unless we are setting doJump to false it will be able to return true and only check our conditional
//again once it is set to false.
//in the event that doJump is already false and our conditional returns true;
if (isGrounded)
{
Expand Down
16 changes: 16 additions & 0 deletions ProjectSettings/ShaderGraphSettings.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 61
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: de02f9e1d18f588468e474319d09a723, type: 3}
m_Name:
m_EditorClassIdentifier:
customInterpolatorErrorThreshold: 32
customInterpolatorWarningThreshold: 16

0 comments on commit b00ebe7

Please sign in to comment.