Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb8713b28d | ||
|
|
4c52fc32db | ||
|
|
7894befefa | ||
|
|
5ceef5963f | ||
|
|
c75ddb2a14 | ||
|
|
0ed1912a0c | ||
|
|
d7ecb9257c | ||
|
|
b2fd9dc737 | ||
|
|
1b5b99811e |
+55
-41
@@ -1,45 +1,59 @@
|
|||||||
# =============== #
|
# This .gitignore file should be placed at the root of your Unity project directory
|
||||||
# Unity generated #
|
#
|
||||||
# =============== #
|
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
|
||||||
[Tt]emp/
|
#
|
||||||
[Oo]bj/
|
|
||||||
[Bb]uild
|
|
||||||
/[Bb]uilds/
|
|
||||||
/[Ll]ibrary/
|
/[Ll]ibrary/
|
||||||
|
/[Tt]emp/
|
||||||
|
/[Oo]bj/
|
||||||
|
/[Bb]uild/
|
||||||
|
/[Bb]uilds/
|
||||||
|
/[Ll]ogs/
|
||||||
|
/[Mm]emoryCaptures/
|
||||||
|
|
||||||
|
# Never ignore Asset meta data
|
||||||
|
!/[Aa]ssets/**/*.meta
|
||||||
|
|
||||||
|
# Uncomment this line if you wish to ignore the asset store tools plugin
|
||||||
|
# /[Aa]ssets/AssetStoreTools*
|
||||||
|
|
||||||
|
# Autogenerated Jetbrains Rider plugin
|
||||||
|
[Aa]ssets/Plugins/Editor/JetBrains*
|
||||||
|
|
||||||
|
# Visual Studio cache directory
|
||||||
|
.vs/
|
||||||
|
|
||||||
|
# Gradle cache directory
|
||||||
|
.gradle/
|
||||||
|
|
||||||
|
# Autogenerated VS/MD/Consulo solution and project files
|
||||||
|
ExportedObj/
|
||||||
|
.consulo/
|
||||||
|
*.csproj
|
||||||
|
*.unityproj
|
||||||
|
*.sln
|
||||||
|
*.suo
|
||||||
|
*.tmp
|
||||||
|
*.user
|
||||||
|
*.userprefs
|
||||||
|
*.pidb
|
||||||
|
*.booproj
|
||||||
|
*.svd
|
||||||
|
*.pdb
|
||||||
|
*.mdb
|
||||||
|
*.opendb
|
||||||
|
*.VC.db
|
||||||
|
|
||||||
|
# Unity3D generated meta files
|
||||||
|
*.pidb.meta
|
||||||
|
*.pdb.meta
|
||||||
|
*.mdb.meta
|
||||||
|
|
||||||
|
# Unity3D generated file on crash reports
|
||||||
sysinfo.txt
|
sysinfo.txt
|
||||||
*.stackdump
|
|
||||||
/Assets/AssetStoreTools*
|
# Builds
|
||||||
*.apk
|
*.apk
|
||||||
*.unitypackage
|
*.unitypackage
|
||||||
|
|
||||||
# ===================================== #
|
# Crashlytics generated file
|
||||||
# Visual Studio / MonoDevelop generated #
|
crashlytics-build.properties
|
||||||
# ===================================== #
|
|
||||||
[Ee]xported[Oo]bj/
|
|
||||||
.vs/
|
|
||||||
/*.userprefs
|
|
||||||
/*.csproj
|
|
||||||
/*.pidb
|
|
||||||
*.pidb.meta
|
|
||||||
/*.suo
|
|
||||||
/*.sln*
|
|
||||||
/*.user
|
|
||||||
/*.unityproj
|
|
||||||
/*.booproj
|
|
||||||
.consulo/
|
|
||||||
/*.tmp
|
|
||||||
/*.svd
|
|
||||||
|
|
||||||
# ============ #
|
|
||||||
# OS generated #
|
|
||||||
# ============ #
|
|
||||||
.DS_Store*
|
|
||||||
._*
|
|
||||||
.Spotlight-V100
|
|
||||||
.Trashes
|
|
||||||
Icon?
|
|
||||||
ehthumbs.db
|
|
||||||
[Tt]humbs.db
|
|
||||||
[Dd]esktop.ini
|
|
||||||
Corridor/Library/ShaderCache/
|
|
||||||
Corridor/Library/metadata/
|
|
||||||
|
|||||||
@@ -44,6 +44,13 @@ public class PlayerController : MonoBehaviour
|
|||||||
extraJump = true;
|
extraJump = true;
|
||||||
moveDirection.y = 0.0f;
|
moveDirection.y = 0.0f;
|
||||||
|
|
||||||
|
if(Input.GetKey(KeyCode.LeftShift))
|
||||||
|
{
|
||||||
|
moveDirection = (moveDirection.normalized * speed/2);
|
||||||
|
} else {
|
||||||
|
moveDirection = moveDirection.normalized * speed;
|
||||||
|
}
|
||||||
|
|
||||||
if (Input.GetButtonDown("Jump"))
|
if (Input.GetButtonDown("Jump"))
|
||||||
{
|
{
|
||||||
moveDirection.y = jumpSpeed;
|
moveDirection.y = jumpSpeed;
|
||||||
|
|||||||
Reference in New Issue
Block a user