Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curvedflats
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flatland
curvedflats
Commits
b78482ab
Commit
b78482ab
authored
Aug 16, 2019
by
17김현학
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply .gitignore
parent
30a40c2e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
752 additions
and
1536 deletions
+752
-1536
.gitignore
.gitignore
+66
-119
PathRenderer.cs
Assets/Scripts/PathRenderer.cs
+392
-392
Square.cs
Assets/Scripts/Square.cs
+32
-32
UIManager.cs
Assets/Scripts/UIManager.cs
+262
-262
GraphicsSettings.asset
ProjectSettings/GraphicsSettings.asset
+0
-108
ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+0
-621
ProjectVersion.txt
ProjectSettings/ProjectVersion.txt
+0
-2
No files found.
.gitignore
View file @
b78482ab
# 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
# =============== #
#
Temp/
/[Ll]ibrary/
Obj/
/[Tt]emp/
UnityGenerated/
/[Oo]bj/
Library/
/[Bb]uild/
/[Bb]uilds/
# ===================================== #
/[Ll]ogs/
# Visual Studio / MonoDevelop generated #
/[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*
# TextMesh Pro files
[Aa]ssets/TextMesh*Pro/
# 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/
ExportedObj/
.consulo/
*.svd
*.userprefs
*.csproj
*.csproj
*.unityproj
*.pidb
*.sln
*.suo
*.suo
*.
tmp
*.
sln
*.user
*.user
*.userprefs
*.unityproj
*.pidb
*.booproj
*.booproj
*.svd
*.pdb
# ============ #
*.mdb
# OS generated #
*.opendb
# ============ #
*.VC.db
.DS_Store
.DS_Store?
# Unity3D generated meta files
._*
*.pidb.meta
.Spotlight-V100
*.pdb.meta
.Trashes
*.mdb.meta
Icon?
ehthumbs.db
# Unity3D generated file on crash reports
Thumbs.db
sysinfo.txt
GraphicsSettings.asset
ProjectSettings.asset
# Builds
ProjectVersion.txt
\ No newline at end of file
*.apk
*.unitypackage
# Crashlytics generated file
crashlytics-build.properties
Assets/Scripts/PathRenderer.cs
View file @
b78482ab
This diff is collapsed.
Click to expand it.
Assets/Scripts/Square.cs
View file @
b78482ab
using
System.Collections
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine
;
using
System
;
using
System
;
using
System.Linq
;
using
System.Linq
;
public
class
Square
:
FlatLandObject
public
class
Square
:
FlatLandObject
{
{
public
List
<
Vector3
>
pathList
=
new
List
<
Vector3
>();
public
List
<
Vector3
>
pathList
=
new
List
<
Vector3
>();
public
List
<
float
>
pathVelocity
=
new
List
<
float
>();
public
List
<
float
>
pathVelocity
=
new
List
<
float
>();
private
float
_zPosition
=>
transform
.
position
.
z
;
private
float
_zPosition
=>
transform
.
position
.
z
;
private
float
PlayerVelocity
;
private
float
PlayerVelocity
;
public
Vector3
GetNthPath
(
int
n
)
// Get a path from (n)th destination to (n+1)th destination.
public
Vector3
GetNthPath
(
int
n
)
// Get a path from (n)th destination to (n+1)th destination.
{
{
return
pathList
[
n
+
1
]
-
pathList
[
n
];
return
pathList
[
n
+
1
]
-
pathList
[
n
];
}
}
public
float
GetTangent
(
Vector3
v
)
public
float
GetTangent
(
Vector3
v
)
{
{
return
v
.
y
/
v
.
x
;
return
v
.
y
/
v
.
x
;
}
}
public
Vector3
GetDestPoint
(
int
n
)
public
Vector3
GetDestPoint
(
int
n
)
{
{
return
pathList
[
n
+
1
];
return
pathList
[
n
+
1
];
}
}
public
float
GetPathVelocity
(
int
n
)
public
float
GetPathVelocity
(
int
n
)
{
{
return
pathVelocity
[
n
+
1
];
return
pathVelocity
[
n
+
1
];
}
}
}
}
\ No newline at end of file
Assets/Scripts/UIManager.cs
View file @
b78482ab
This diff is collapsed.
Click to expand it.
ProjectSettings/GraphicsSettings.asset
deleted
100644 → 0
View file @
30a40c2e
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!30
&1
GraphicsSettings
:
m_ObjectHideFlags
:
0
serializedVersion
:
12
m_Deferred
:
m_Mode
:
1
m_Shader
:
{
fileID
:
69
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_DeferredReflections
:
m_Mode
:
1
m_Shader
:
{
fileID
:
74
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ScreenSpaceShadows
:
m_Mode
:
1
m_Shader
:
{
fileID
:
64
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_LegacyDeferred
:
m_Mode
:
1
m_Shader
:
{
fileID
:
63
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_DepthNormals
:
m_Mode
:
1
m_Shader
:
{
fileID
:
62
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_MotionVectors
:
m_Mode
:
1
m_Shader
:
{
fileID
:
75
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_LightHalo
:
m_Mode
:
1
m_Shader
:
{
fileID
:
105
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_LensFlare
:
m_Mode
:
1
m_Shader
:
{
fileID
:
102
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_AlwaysIncludedShaders
:
-
{
fileID
:
10753
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
-
{
fileID
:
10770
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_PreloadedShaders
:
[]
m_SpritesDefaultMaterial
:
{
fileID
:
10754
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_CustomRenderPipeline
:
{
fileID
:
0
}
m_TransparencySortMode
:
0
m_TransparencySortAxis
:
{
x
:
0
,
y
:
0
,
z
:
1
}
m_DefaultRenderingPath
:
1
m_DefaultMobileRenderingPath
:
1
m_TierSettings
:
-
serializedVersion
:
5
m_BuildTarget
:
1
m_Tier
:
0
m_Settings
:
standardShaderQuality
:
2
renderingPath
:
1
hdrMode
:
1
realtimeGICPUUsage
:
25
useReflectionProbeBoxProjection
:
1
useReflectionProbeBlending
:
1
useHDR
:
0
useDetailNormalMap
:
1
useCascadedShadowMaps
:
1
prefer32BitShadowMaps
:
0
enableLPPV
:
1
useDitherMaskForAlphaBlendedShadows
:
1
m_Automatic
:
0
-
serializedVersion
:
5
m_BuildTarget
:
1
m_Tier
:
1
m_Settings
:
standardShaderQuality
:
2
renderingPath
:
1
hdrMode
:
1
realtimeGICPUUsage
:
25
useReflectionProbeBoxProjection
:
1
useReflectionProbeBlending
:
1
useHDR
:
0
useDetailNormalMap
:
1
useCascadedShadowMaps
:
1
prefer32BitShadowMaps
:
0
enableLPPV
:
1
useDitherMaskForAlphaBlendedShadows
:
1
m_Automatic
:
0
-
serializedVersion
:
5
m_BuildTarget
:
1
m_Tier
:
2
m_Settings
:
standardShaderQuality
:
2
renderingPath
:
1
hdrMode
:
1
realtimeGICPUUsage
:
50
useReflectionProbeBoxProjection
:
1
useReflectionProbeBlending
:
1
useHDR
:
0
useDetailNormalMap
:
1
useCascadedShadowMaps
:
1
prefer32BitShadowMaps
:
0
enableLPPV
:
1
useDitherMaskForAlphaBlendedShadows
:
1
m_Automatic
:
0
m_LightmapStripping
:
0
m_FogStripping
:
0
m_InstancingStripping
:
0
m_LightmapKeepPlain
:
1
m_LightmapKeepDirCombined
:
1
m_LightmapKeepDynamicPlain
:
1
m_LightmapKeepDynamicDirCombined
:
1
m_LightmapKeepShadowMask
:
1
m_LightmapKeepSubtractive
:
1
m_FogKeepLinear
:
1
m_FogKeepExp
:
1
m_FogKeepExp2
:
1
m_AlbedoSwatchInfos
:
[]
m_LightsUseLinearIntensity
:
0
m_LightsUseColorTemperature
:
0
ProjectSettings/ProjectSettings.asset
deleted
100644 → 0
View file @
30a40c2e
This diff is collapsed.
Click to expand it.
ProjectSettings/ProjectVersion.txt
deleted
100644 → 0
View file @
30a40c2e
m_EditorVersion: 2019.2.0f1
m_EditorVersionWithRevision: 2019.2.0f1 (20c1667945cf)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment