Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
civilization-iii
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
true-history-committee
civilization-iii
Commits
e602c455
Commit
e602c455
authored
Mar 03, 2018
by
16도재형
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
다른 타일건물 나옴
parent
5af6b18e
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1104 additions
and
107 deletions
+1104
-107
hextile.prefab
Assets/Prefabs/hextile.prefab
+506
-76
finno_city_wall_texture.mat
Assets/Resources/Materials/finno_city_wall_texture.mat
+76
-0
finno_city_wall_texture.mat.meta
Assets/Resources/Materials/finno_city_wall_texture.mat.meta
+10
-0
finno_factory.mat
Assets/Resources/Materials/finno_factory.mat
+76
-0
finno_factory.mat.meta
Assets/Resources/Materials/finno_factory.mat.meta
+10
-0
finno_fort.mat
Assets/Resources/Materials/finno_fort.mat
+76
-0
finno_fort.mat.meta
Assets/Resources/Materials/finno_fort.mat.meta
+10
-0
finno_mine.mat
Assets/Resources/Materials/finno_mine.mat
+76
-0
finno_mine.mat.meta
Assets/Resources/Materials/finno_mine.mat.meta
+10
-0
finno_octagon.mat
Assets/Resources/Materials/finno_octagon.mat
+76
-0
finno_octagon.mat.meta
Assets/Resources/Materials/finno_octagon.mat.meta
+10
-0
hwan_city_wall_texture.mat
Assets/Resources/Materials/hwan_city_wall_texture.mat
+76
-0
hwan_city_wall_texture.mat.meta
Assets/Resources/Materials/hwan_city_wall_texture.mat.meta
+10
-0
GameManager.cs
Assets/Scripts/GameManager.cs
+5
-5
HexTile.cs
Assets/Scripts/HexTile.cs
+77
-26
No files found.
Assets/Prefabs/hextile.prefab
View file @
e602c455
This diff is collapsed.
Click to expand it.
Assets/Resources/Materials/finno_city_wall_texture.mat
0 → 100644
View file @
e602c455
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
finno_city_wall_texture
m_Shader
:
{
fileID
:
46
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
4
m_EnableInstancingVariants
:
0
m_DoubleSidedGI
:
0
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
disabledShaderPasses
:
[]
m_SavedProperties
:
serializedVersion
:
3
m_TexEnvs
:
-
_BumpMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailAlbedoMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailMask
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailNormalMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_EmissionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MainTex
:
m_Texture
:
{
fileID
:
2800000
,
guid
:
87cfcd5e199ee254c9fa999fe66e084a
,
type
:
3
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MetallicGlossMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_OcclusionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_ParallaxMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
_BumpScale
:
1
-
_Cutoff
:
0.5
-
_DetailNormalMapScale
:
1
-
_DstBlend
:
0
-
_GlossMapScale
:
1
-
_Glossiness
:
0.5
-
_GlossyReflections
:
1
-
_Metallic
:
0
-
_Mode
:
0
-
_OcclusionStrength
:
1
-
_Parallax
:
0.02
-
_SmoothnessTextureChannel
:
0
-
_SpecularHighlights
:
1
-
_SrcBlend
:
1
-
_UVSec
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Resources/Materials/finno_city_wall_texture.mat.meta
0 → 100644
View file @
e602c455
fileFormatVersion: 2
guid: 039bda54ad2b39642b8b20a39cf55192
timeCreated: 1520016586
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/Materials/finno_factory.mat
0 → 100644
View file @
e602c455
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
finno_factory
m_Shader
:
{
fileID
:
46
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
4
m_EnableInstancingVariants
:
0
m_DoubleSidedGI
:
0
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
disabledShaderPasses
:
[]
m_SavedProperties
:
serializedVersion
:
3
m_TexEnvs
:
-
_BumpMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailAlbedoMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailMask
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailNormalMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_EmissionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MainTex
:
m_Texture
:
{
fileID
:
2800000
,
guid
:
23ed3b64ea5a61f44add0cda24e03863
,
type
:
3
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MetallicGlossMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_OcclusionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_ParallaxMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
_BumpScale
:
1
-
_Cutoff
:
0.5
-
_DetailNormalMapScale
:
1
-
_DstBlend
:
0
-
_GlossMapScale
:
1
-
_Glossiness
:
0.5
-
_GlossyReflections
:
1
-
_Metallic
:
0
-
_Mode
:
0
-
_OcclusionStrength
:
1
-
_Parallax
:
0.02
-
_SmoothnessTextureChannel
:
0
-
_SpecularHighlights
:
1
-
_SrcBlend
:
1
-
_UVSec
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Resources/Materials/finno_factory.mat.meta
0 → 100644
View file @
e602c455
fileFormatVersion: 2
guid: 37d46ec2975f61b47a6c70ad71495050
timeCreated: 1520016643
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/Materials/finno_fort.mat
0 → 100644
View file @
e602c455
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
finno_fort
m_Shader
:
{
fileID
:
46
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
4
m_EnableInstancingVariants
:
0
m_DoubleSidedGI
:
0
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
disabledShaderPasses
:
[]
m_SavedProperties
:
serializedVersion
:
3
m_TexEnvs
:
-
_BumpMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailAlbedoMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailMask
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailNormalMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_EmissionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MainTex
:
m_Texture
:
{
fileID
:
2800000
,
guid
:
7274d5d8e2e3ca24bb8345032acceea6
,
type
:
3
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MetallicGlossMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_OcclusionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_ParallaxMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
_BumpScale
:
1
-
_Cutoff
:
0.5
-
_DetailNormalMapScale
:
1
-
_DstBlend
:
0
-
_GlossMapScale
:
1
-
_Glossiness
:
0.5
-
_GlossyReflections
:
1
-
_Metallic
:
0
-
_Mode
:
0
-
_OcclusionStrength
:
1
-
_Parallax
:
0.02
-
_SmoothnessTextureChannel
:
0
-
_SpecularHighlights
:
1
-
_SrcBlend
:
1
-
_UVSec
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Resources/Materials/finno_fort.mat.meta
0 → 100644
View file @
e602c455
fileFormatVersion: 2
guid: 6529625245ad20f43a7521cf0dbe2471
timeCreated: 1520016637
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/Materials/finno_mine.mat
0 → 100644
View file @
e602c455
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
finno_mine
m_Shader
:
{
fileID
:
46
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
4
m_EnableInstancingVariants
:
0
m_DoubleSidedGI
:
0
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
disabledShaderPasses
:
[]
m_SavedProperties
:
serializedVersion
:
3
m_TexEnvs
:
-
_BumpMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailAlbedoMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailMask
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailNormalMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_EmissionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MainTex
:
m_Texture
:
{
fileID
:
2800000
,
guid
:
7710f942af8bd0149812cca9cecf2d1c
,
type
:
3
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MetallicGlossMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_OcclusionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_ParallaxMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
_BumpScale
:
1
-
_Cutoff
:
0.5
-
_DetailNormalMapScale
:
1
-
_DstBlend
:
0
-
_GlossMapScale
:
1
-
_Glossiness
:
0.5
-
_GlossyReflections
:
1
-
_Metallic
:
0
-
_Mode
:
0
-
_OcclusionStrength
:
1
-
_Parallax
:
0.02
-
_SmoothnessTextureChannel
:
0
-
_SpecularHighlights
:
1
-
_SrcBlend
:
1
-
_UVSec
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Resources/Materials/finno_mine.mat.meta
0 → 100644
View file @
e602c455
fileFormatVersion: 2
guid: 0feca6d261b0e64429ec360c3f0fb19e
timeCreated: 1520016630
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/Materials/finno_octagon.mat
0 → 100644
View file @
e602c455
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
finno_octagon
m_Shader
:
{
fileID
:
46
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
4
m_EnableInstancingVariants
:
0
m_DoubleSidedGI
:
0
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
disabledShaderPasses
:
[]
m_SavedProperties
:
serializedVersion
:
3
m_TexEnvs
:
-
_BumpMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailAlbedoMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailMask
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailNormalMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_EmissionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MainTex
:
m_Texture
:
{
fileID
:
2800000
,
guid
:
59a226c000f85a449b98bf2ec35a1bde
,
type
:
3
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MetallicGlossMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_OcclusionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_ParallaxMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
_BumpScale
:
1
-
_Cutoff
:
0.5
-
_DetailNormalMapScale
:
1
-
_DstBlend
:
0
-
_GlossMapScale
:
1
-
_Glossiness
:
0.5
-
_GlossyReflections
:
1
-
_Metallic
:
0
-
_Mode
:
0
-
_OcclusionStrength
:
1
-
_Parallax
:
0.02
-
_SmoothnessTextureChannel
:
0
-
_SpecularHighlights
:
1
-
_SrcBlend
:
1
-
_UVSec
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Resources/Materials/finno_octagon.mat.meta
0 → 100644
View file @
e602c455
fileFormatVersion: 2
guid: 93442aa117d32104e80d974c6ec70274
timeCreated: 1520016622
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/Materials/hwan_city_wall_texture.mat
0 → 100644
View file @
e602c455
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
hwan_city_wall_texture
m_Shader
:
{
fileID
:
46
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
4
m_EnableInstancingVariants
:
0
m_DoubleSidedGI
:
0
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
disabledShaderPasses
:
[]
m_SavedProperties
:
serializedVersion
:
3
m_TexEnvs
:
-
_BumpMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailAlbedoMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailMask
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_DetailNormalMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_EmissionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MainTex
:
m_Texture
:
{
fileID
:
2800000
,
guid
:
8084707d99e470248a6ff38328511597
,
type
:
3
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_MetallicGlossMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_OcclusionMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
_ParallaxMap
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
_BumpScale
:
1
-
_Cutoff
:
0.5
-
_DetailNormalMapScale
:
1
-
_DstBlend
:
0
-
_GlossMapScale
:
1
-
_Glossiness
:
0.5
-
_GlossyReflections
:
1
-
_Metallic
:
0
-
_Mode
:
0
-
_OcclusionStrength
:
1
-
_Parallax
:
0.02
-
_SmoothnessTextureChannel
:
0
-
_SpecularHighlights
:
1
-
_SrcBlend
:
1
-
_UVSec
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Resources/Materials/hwan_city_wall_texture.mat.meta
0 → 100644
View file @
e602c455
fileFormatVersion: 2
guid: 53f509707205080448bdf20683220e34
timeCreated: 1520016598
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/GameManager.cs
View file @
e602c455
...
...
@@ -80,11 +80,11 @@ public class GameManager : MonoBehaviour {
// Update is called once per frame
void
Update
()
{
Render
(
_game
.
Terrain
);
Debug
.
Log
(
"Gold:"
+
_game
.
PlayerInTurn
.
Gold
+
"(+"
+
_game
.
PlayerInTurn
.
GoldIncome
+
")"
);
Debug
.
Log
(
"Pop:"
+
_game
.
PlayerInTurn
.
Population
);
Debug
.
Log
(
"Happ:"
+
_game
.
PlayerInTurn
.
Happiness
);
Debug
.
Log
(
"Prod:"
+
_game
.
PlayerInTurn
.
Labor
);
Debug
.
Log
(
"Tech:"
+
_game
.
PlayerInTurn
.
Research
);
//
Debug.Log("Gold:" + _game.PlayerInTurn.Gold + "(+" + _game.PlayerInTurn.GoldIncome +")");
//
Debug.Log("Pop:" + _game.PlayerInTurn.Population);
//
Debug.Log("Happ:" + _game.PlayerInTurn.Happiness);
//
Debug.Log("Prod:" + _game.PlayerInTurn.Labor);
//
Debug.Log("Tech:" + _game.PlayerInTurn.Research);
if
(
CheckVictory
())
{
UIManager
.
I
.
GameEnd
();
...
...
Assets/Scripts/HexTile.cs
View file @
e602c455
...
...
@@ -5,7 +5,8 @@ using CivModel;
using
CivModel.Common
;
using
System
;
public
class
HexTile
:
MonoBehaviour
{
public
class
HexTile
:
MonoBehaviour
{
public
CivModel
.
Terrain
.
Point
point
;
Transform
terrains
;
...
...
@@ -15,56 +16,106 @@ public class HexTile : MonoBehaviour {
public
bool
isFlickering
;
private
IEnumerator
_coroutine
;
// Use this for initialization
void
Start
()
{
// Use this for initialization
void
Start
()
{
terrains
=
transform
.
GetChild
(
0
).
transform
;
units
=
transform
.
GetChild
(
1
).
transform
;
buildings
=
transform
.
GetChild
(
2
).
transform
;
}
// Update is called once per frame
void
Update
()
{
// Update is called once per frame
void
Update
()
{
}
// Render tile terrain
public
void
ChangeTile
()
{
terrains
.
GetChild
((
int
)
point
.
Type
).
gameObject
.
SetActive
(
true
);
foreach
(
Transform
child
in
terrains
)
{
child
.
gameObject
.
SetActive
(
false
);
}
if
(
point
.
TileBuilding
is
CivModel
.
CityBase
)
{
terrains
.
GetChild
(
0
).
gameObject
.
SetActive
(
true
);
}
else
{
terrains
.
GetChild
((
int
)
point
.
Type
).
gameObject
.
SetActive
(
true
);
}
}
public
void
BuildDistrict
(
CivModel
.
TileBuilding
building
)
{
if
(
building
==
null
)
buildings
.
GetChild
(
2
).
gameObject
.
SetActive
(
false
);
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
foreach
(
Transform
child
in
buildings
)
foreach
(
Transform
child
in
buildings
.
GetChild
(
i
)
)
{
child
.
gameObject
.
SetActive
(
false
);
}
}
else
if
(
building
!=
null
)
{
foreach
(
Transform
child
in
buildings
)
{
if
(
child
.
gameObject
.
name
.
Equals
(
TileBuildingObject
(
building
)))
{
child
.
gameObject
.
SetActive
(
true
);
}
else
{
child
.
gameObject
.
SetActive
(
false
);
}
}
TileBuildingObject
(
building
);
}
}
string
TileBuildingObject
(
CivModel
.
TileBuilding
building
)
void
TileBuildingObject
(
CivModel
.
TileBuilding
building
)
{
if
(
building
is
CivModel
.
Common
.
CityCenter
)
Transform
side
;
if
(
building
is
CivModel
.
CityBase
)
{
Debug
.
Log
(
building
.
Owner
.
Team
);
buildings
.
GetChild
(
2
).
gameObject
.
SetActive
(
true
);
side
=
buildings
.
GetChild
((
building
.
Owner
.
Team
+
1
)
%
2
);
side
.
GetChild
(
0
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Hwan
.
HwanEmpireIbiza
)
{
side
=
buildings
.
GetChild
(
0
);
side
.
GetChild
(
1
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Finno
.
AncientFinnoOctagon
)
{
side
=
buildings
.
GetChild
(
1
);
side
.
GetChild
(
1
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Hwan
.
HwanEmpireLatifundium
)
{
side
=
buildings
.
GetChild
(
0
);
side
.
GetChild
(
2
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Finno
.
AncientFinnoGermaniumMine
)
{
side
=
buildings
.
GetChild
(
1
);
side
.
GetChild
(
2
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Hwan
.
HwanEmpireFIRFortress
)
{
side
=
buildings
.
GetChild
(
0
);
side
.
GetChild
(
3
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Finno
.
AncientFinnoFIRFortress
)
{
side
=
buildings
.
GetChild
(
1
);
side
.
GetChild
(
3
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Hwan
.
HwanEmpireKimchiFactory
)
{
side
=
buildings
.
GetChild
(
0
);
side
.
GetChild
(
4
).
gameObject
.
SetActive
(
true
);
}
else
if
(
building
is
CivModel
.
Finno
.
AncientFinnoFineDustFactory
)
{
return
"CityCenter"
;
side
=
buildings
.
GetChild
(
1
);
side
.
GetChild
(
4
).
gameObject
.
SetActive
(
true
);
}
else
return
""
;
}
// This method should be changed when unit type increses
...
...
@@ -134,7 +185,7 @@ public class HexTile : MonoBehaviour {
Material
mat
=
terrains
.
GetChild
((
int
)
point
.
Type
).
GetComponent
<
Renderer
>().
material
;
Color
delta
=
Color
.
white
-
c
;
while
(
true
)
while
(
true
)
{
// From white to c
for
(
float
i
=
0
;
i
<=
1f
;
i
+=
1.5f
*
Time
.
deltaTime
)
...
...
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