Commit 4b637acc authored by Seungwon Ju's avatar Seungwon Ju

Unit class changed

parent 0d59a62b
This diff is collapsed.
ImageRuntimeVersion: v4.0.30319
Assembly FakeView, Version=1.0.*, Culture=고정 언어(고정 국가):
hash=SHA1, flags=PublicKey
Assembly mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:
hash=None, flags=None
Assembly CivModel.Common, Version=1.0.*, Culture=고정 언어(고정 국가):
hash=None, flags=None
Assembly CivModel, Version=1.0.*, Culture=고정 언어(고정 국가):
hash=None, flags=None
Assembly CivPresenter, Version=1.0.*, Culture=고정 언어(고정 국가):
hash=None, flags=None
Assembly System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:
hash=None, flags=None
Assembly System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:
hash=None, flags=None
Assembly System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:
hash=None, flags=None
fileFormatVersion: 2
guid: 31c9bee524950ac4b83584d3ad0d1791
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -23,6 +23,7 @@ GameObject: ...@@ -23,6 +23,7 @@ GameObject:
- component: {fileID: 23430415915558628} - component: {fileID: 23430415915558628}
- component: {fileID: 95116768080365986} - component: {fileID: 95116768080365986}
- component: {fileID: 114555728656525668} - component: {fileID: 114555728656525668}
- component: {fileID: 64170105535098754}
m_Layer: 0 m_Layer: 0
m_Name: unit m_Name: unit
m_TagString: Untagged m_TagString: Untagged
...@@ -85,6 +86,20 @@ MeshFilter: ...@@ -85,6 +86,20 @@ MeshFilter:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1994173042382988} m_GameObject: {fileID: 1994173042382988}
m_Mesh: {fileID: 4300000, guid: b30586820caa1de47b0e0ed1aa73c608, type: 3} m_Mesh: {fileID: 4300000, guid: b30586820caa1de47b0e0ed1aa73c608, type: 3}
--- !u!64 &64170105535098754
MeshCollider:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1994173042382988}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 3
m_Convex: 0
m_CookingOptions: 14
m_SkinWidth: 0.01
m_Mesh: {fileID: 4300000, guid: b30586820caa1de47b0e0ed1aa73c608, type: 3}
--- !u!95 &95116768080365986 --- !u!95 &95116768080365986
Animator: Animator:
serializedVersion: 3 serializedVersion: 3
...@@ -114,3 +129,4 @@ MonoBehaviour: ...@@ -114,3 +129,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 67add831fd3c2384b9a1363aa1aa1331, type: 3} m_Script: {fileID: 11500000, guid: 67add831fd3c2384b9a1363aa1aa1331, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
unityPoint: {x: 0, y: 0, z: 0}
This diff is collapsed.
...@@ -5,13 +5,13 @@ using UnityEngine; ...@@ -5,13 +5,13 @@ using UnityEngine;
public class CameraControl : MonoBehaviour { public class CameraControl : MonoBehaviour {
public int boundary = 5; public int boundary = 5;
public int speed = 50; public int speed = 10;
private int screen_height = Screen.height; private int screen_height = Screen.height;
private int screen_width = Screen.width; private int screen_width = Screen.width;
int MaxHeight = 30; //최대 높이 int MaxHeight = 30; //최대 높이
int MinHeight = 10; //최소 높이 int MinHeight = 15; //최소 높이
// Use this for initialization // Use this for initialization
void Start () { void Start () {
...@@ -35,8 +35,6 @@ public class CameraControl : MonoBehaviour { ...@@ -35,8 +35,6 @@ public class CameraControl : MonoBehaviour {
Camera.main.transform.position = new Vector3(Camera.main.transform.position.x, MinHeight, Camera.main.transform.position.z); Camera.main.transform.position = new Vector3(Camera.main.transform.position.x, MinHeight, Camera.main.transform.position.z);
} }
if (Input.mousePosition.x > screen_width - boundary) { if (Input.mousePosition.x > screen_width - boundary) {
if (Camera.main.transform.position.x <= 220) if (Camera.main.transform.position.x <= 220)
Camera.main.transform.Translate(2 * speed * Time.deltaTime * Mathf.Abs(Input.mousePosition.x - (screen_width - boundary)) * (float)0.015 , 0, 0); Camera.main.transform.Translate(2 * speed * Time.deltaTime * Mathf.Abs(Input.mousePosition.x - (screen_width - boundary)) * (float)0.015 , 0, 0);
......
...@@ -10,20 +10,22 @@ public class GameManager : MonoBehaviour { ...@@ -10,20 +10,22 @@ public class GameManager : MonoBehaviour {
public CivModel.Game Game { get { return _game; } } public CivModel.Game Game { get { return _game; } }
private static GameManager _manager = null; private static GameManager _manager = null;
public static GameManager I { get { return _manager; } } public static GameManager Instance { get { return _manager; } }
public float outerRadius = 1f; // Outer&inner radius of hex tile. //public float outerRadius = 1f;
public float innerRadius = Mathf.Sqrt(3) / 2; // These variables can be deleted if there are no use. //public float innerRadius = Mathf.Sqrt(3) / 2;
public GameObject HextilePrefab; public GameObject HextilePrefab;
private GameObject[,] _tiles; private GameObject[,] _tiles;
public GameObject[,] Tiles { get { return _tiles; } } public GameObject[,] Tiles { get { return _tiles; } }
public GameObject UnitPrefab; public GameObject UnitPrefab;
private List<GameObject> _units = new List<GameObject>();
public List<GameObject> Units { get { return _units; } }
public Material[] materials; public Material[] materials;
public Renderer rend; public CivModel.Unit selectedUnit;
void Awake() { void Awake() {
// Singleton // Singleton
...@@ -56,6 +58,23 @@ public class GameManager : MonoBehaviour { ...@@ -56,6 +58,23 @@ public class GameManager : MonoBehaviour {
// Update is called once per frame // Update is called once per frame
void Update() { void Update() {
}
private void UpdateMapUnit() {
for (int i = 0; i < _game.Terrain.Width; i++) {
for (int j = 0; j < _game.Terrain.Height; j++) {
CivModel.Terrain.Point point = _game.Terrain.GetPoint(i, j);
HexTile tile = _tiles[i, j].GetComponent<HexTile>();
tile.SetTerrain();
tile.SetBuilding();
}
}
foreach (var unt in _units){
}
} }
private void InitiateMap() { private void InitiateMap() {
...@@ -63,16 +82,15 @@ public class GameManager : MonoBehaviour { ...@@ -63,16 +82,15 @@ public class GameManager : MonoBehaviour {
for (int i = 0; i < _game.Terrain.Width; i++) { for (int i = 0; i < _game.Terrain.Width; i++) {
for (int j = 0; j < _game.Terrain.Height; j++) { for (int j = 0; j < _game.Terrain.Height; j++) {
Vector3 pos = new Vector3(2 * i * innerRadius, -0.05f, -j * outerRadius * 1.5f);
if (j % 2 != 0) { Vector3 pos = ModelPntToUnityPnt(i, j, -0.05f);
pos.x -= innerRadius;
}
_tiles[i, j] = Instantiate(HextilePrefab, pos, Quaternion.identity); _tiles[i, j] = Instantiate(HextilePrefab, pos, Quaternion.identity);
_tiles[i, j].name = String.Format("Tile({0},{1})", i, j); _tiles[i, j].name = String.Format("Tile({0},{1})", i, j);
CivModel.Terrain.Point pnt = _game.Terrain.GetPoint(i, j); CivModel.Terrain.Point pnt = _game.Terrain.GetPoint(i, j);
_tiles[i, j].GetComponent<HexTile>().point = pnt; _tiles[i, j].GetComponent<HexTile>().SetPoints(pnt, pos);
if (pnt.Unit != null) if (pnt.Unit != null)
InitiateUnit(_game.Terrain.GetPoint(i, j).Unit); InitiateUnit(pnt.Unit);
} }
} }
} }
...@@ -80,19 +98,32 @@ public class GameManager : MonoBehaviour { ...@@ -80,19 +98,32 @@ public class GameManager : MonoBehaviour {
private void InitiateUnit(CivModel.Unit unit) { private void InitiateUnit(CivModel.Unit unit) {
if (unit?.PlacedPoint != null) { if (unit?.PlacedPoint != null) {
var pt = unit.PlacedPoint.Value; var pt = unit.PlacedPoint.Value;
Vector3 pos = new Vector3(2 * pt.Position.X * innerRadius, 1.25f, -pt.Position.Y * outerRadius * 1.5f);
if ((pt.Position.Y % 2) != 0) { Vector3 pos = ModelPntToUnityPnt(pt, 1.25f);
pos.x -= innerRadius;
}
GameObject unt = Instantiate(UnitPrefab, pos, Quaternion.identity); GameObject unt = Instantiate(UnitPrefab, pos, Quaternion.identity);
unt.name = String.Format("Unit[{0},{1}]", pt.Position.X, pt.Position.Y); unt.name = String.Format("Unit[{0},{1}]", pt.Position.X, pt.Position.Y);
unt.GetComponent<Unit>().point = pt; unt.GetComponent<Unit>().SetPoints(pt, pos);
foreach (Material m in GameManager.I.materials) {
if (m == GameManager.I.materials[(int)UnitEnum.UnitToEnum(unit)]) { _units.Add(unt);
unt.GetComponent<Renderer>().material = m;
} }
} }
public static Vector3 ModelPntToUnityPnt(CivModel.Terrain.Point pt, float yPos) {
Vector3 unityPoint = new Vector3(2 * pt.Position.X * (Mathf.Sqrt(3) / 2), yPos, -pt.Position.Y * 1.5f);
if ((pt.Position.Y % 2) != 0)
unityPoint.x -= (Mathf.Sqrt(3) / 2);
return unityPoint;
} }
public static Vector3 ModelPntToUnityPnt(int i, int j, float yPos)
{
Vector3 unityPoint = new Vector3(2 * i * (Mathf.Sqrt(3) / 2), yPos, -j * 1.5f);
if ((j % 2) != 0)
unityPoint.x -= (Mathf.Sqrt(3) / 2);
return unityPoint;
} }
} }
...@@ -9,33 +9,52 @@ public class HexTile : MonoBehaviour ...@@ -9,33 +9,52 @@ public class HexTile : MonoBehaviour
// 현재 tile의 위치의 point class // 현재 tile의 위치의 point class
public CivModel.Terrain.Point point; public CivModel.Terrain.Point point;
// Unity에서 그려지는 벡터 포지션
public Vector3 unityPoint;
// prefab의 자식 gameobject들 // prefab의 자식 gameobject들
Transform terrains; Transform terrains;
Transform buildings; Transform buildings;
CivModel.TileBuilding building; CivModel.TileBuilding building;
public bool isFlickering;
private IEnumerator _coroutine;
// Use this for initialization // Use this for initialization
void Start() { void Start() {
terrains = transform.GetChild(0).transform;
SetTerrain(); SetTerrain();
buildings = transform.GetChild(1).transform;
building = point.TileBuilding;
SetBuilding(); SetBuilding();
} }
public void SetPoints(CivModel.Terrain.Point p1) {
this.point = p1;
this.unityPoint = GameManager.ModelPntToUnityPnt(p1, -0.05f);
}
public void SetPoints(CivModel.Terrain.Point p1, Vector3 p2) {
this.point = p1;
this.unityPoint = new Vector3(p2.x, p2.y, p2.z);
}
// Render tile terrain // Render tile terrain
public void SetTerrain() { public void SetTerrain() {
terrains = transform.GetChild(0).transform;
if (terrains != null) { if (terrains != null) {
foreach (Transform child in terrains) {
child.gameObject.SetActive(false);
}
terrains.GetChild((int)point.Type).gameObject.SetActive(true); terrains.GetChild((int)point.Type).gameObject.SetActive(true);
} }
} }
public void SetBuilding() { public void SetBuilding() {
Transform side; buildings = transform.GetChild(1).transform;
building = point.TileBuilding;
Transform side;
if (building is CivModel.CityBase) { if (building is CivModel.CityBase) {
buildings.GetChild(2).gameObject.SetActive(true); buildings.GetChild(2).gameObject.SetActive(true);
side = buildings.GetChild((building.Owner.Team + 1) % 2); side = buildings.GetChild((building.Owner.Team + 1) % 2);
...@@ -75,6 +94,72 @@ public class HexTile : MonoBehaviour ...@@ -75,6 +94,72 @@ public class HexTile : MonoBehaviour
} }
} }
// Flicker with blue color. This is used for parametered move and skill.
public void FlickerBlue()
{
isFlickering = true;
//Debug.Log(gameObject.name + " is flickering with blue");
if (terrains.GetChild((int)point.Type).GetComponent<Renderer>() == null)
return;
_coroutine = Flicker(Color.blue);
StartCoroutine(_coroutine);
}
// Blink with red color. This is used for attack.
public void FlickerRed()
{
isFlickering = true;
//Debug.Log(gameObject.name + " is flickering with red");
if (terrains.GetChild((int)point.Type).GetComponent<Renderer>() == null)
return;
_coroutine = Flicker(Color.red);
StartCoroutine(_coroutine);
}
public void StopFlickering()
{
isFlickering = false;
//Debug.Log(gameObject.name + " stopped flickering");
if (terrains.GetChild((int)point.Type).GetComponent<Renderer>() == null)
return;
if (_coroutine == null)
return;
StopCoroutine(_coroutine);
Material mat = terrains.GetChild((int)point.Type).GetComponent<Renderer>().material;
mat.SetColor("_Color", Color.white);
}
// Make tile flicker with color c. Don't need to read this method.
IEnumerator Flicker(Color c)
{
Material mat = terrains.GetChild((int)point.Type).GetComponent<Renderer>().material;
Color delta = Color.white - c;
while (true)
{
// From white to c
for (float i = 0; i <= 1f; i += 1.5f * Time.deltaTime)
{
mat.SetColor("_Color", Color.white - delta * (1 - Mathf.Cos(Mathf.PI * i)) / 2);
yield return null;
}
mat.SetColor("_Color", c);
// From c to white
for (float i = 0; i <= 1f; i += 1.5f * Time.deltaTime)
{
mat.SetColor("_Color", c + delta * (1 - Mathf.Cos(Mathf.PI * i)) / 2);
yield return null;
}
mat.SetColor("_Color", Color.white);
if (!isFlickering)
{
break;
}
yield return new WaitForSeconds(0.2f);
}
}
} }
...@@ -8,6 +8,10 @@ public class UIManager : MonoBehaviour ...@@ -8,6 +8,10 @@ public class UIManager : MonoBehaviour
GameObject mapUI; GameObject mapUI;
GameObject managementUI; GameObject managementUI;
GameObject questUI; GameObject questUI;
GameObject selectedUnit;
public Ray ray;
public RaycastHit hit;
// Use this for initialization // Use this for initialization
void Start() void Start()
...@@ -15,11 +19,25 @@ public class UIManager : MonoBehaviour ...@@ -15,11 +19,25 @@ public class UIManager : MonoBehaviour
mapUI = GameObject.Find("MapUI"); mapUI = GameObject.Find("MapUI");
managementUI = GameObject.Find("ManagementUI"); managementUI = GameObject.Find("ManagementUI");
questUI = GameObject.Find("QuestUI"); questUI = GameObject.Find("QuestUI");
// mapUI.SetActive(false);
managementUI.SetActive(false);
questUI.SetActive(false);
} }
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Input.GetMouseButtonDown(0)) {
if(Physics.Raycast(ray, out hit)){
selectedUnit = hit.transform.gameObject;
Debug.Log(selectedUnit.name);
Unit unt = selectedUnit.GetComponent<Unit>();
if(unt != null)
GameManager.Instance.selectedUnit = unt.point.Unit;
}
}
} }
...@@ -38,4 +56,11 @@ public class UIManager : MonoBehaviour ...@@ -38,4 +56,11 @@ public class UIManager : MonoBehaviour
if (go != mapUI) mapUI.SetActive(true); if (go != mapUI) mapUI.SetActive(true);
} }
} }
public void onClickMove() {
}
} }
\ No newline at end of file
...@@ -9,7 +9,250 @@ public class Unit : MonoBehaviour { ...@@ -9,7 +9,250 @@ public class Unit : MonoBehaviour {
// 현재 Unit의 위치의 point class // 현재 Unit의 위치의 point class
public CivModel.Terrain.Point point; public CivModel.Terrain.Point point;
// Unity에서 그려지는 벡터 포지션
public Vector3 unityPoint;
private bool _inMoveState = false;
public bool MoveState { get { return _inMoveState; } }
private bool _inAttackState = false;
public bool AttackState { get { return _inAttackState; } }
private bool _inSkillState = false;
public bool SkillState { get { return _inSkillState; } }
//private bool _inDepState = false;
//public bool DepState { get { return _inDepState; } }
private int _currentSkill = -1;
private CivModel.Terrain.Point?[] _parameterPoints;
// Use this for initialization // Use this for initialization
void Start() { void Start() {
} }
public void SetPoints(CivModel.Terrain.Point p1) {
this.point = p1;
this.unityPoint = GameManager.ModelPntToUnityPnt(p1, 1.25f);
this.transform.position = this.unityPoint;
SetMaterial();
}
public void SetPoints(CivModel.Terrain.Point p1, Vector3 p2)
{
this.point = p1;
this.unityPoint = new Vector3(p2.x, p2.y, p2.z);
this.transform.position = this.unityPoint;
SetMaterial();
}
private void SetMaterial() {
foreach (Material m in GameManager.Instance.materials)
{
if (m == GameManager.Instance.materials[(int)UnitEnum.UnitToEnum(point.Unit)])
{
GetComponent<Renderer>().material = m;
}
}
}
// There are enter, exit methods for move and attack states. Enter methods are public, exit methods are default.
// NormalStateEnter() simply resets all state condition.
public void NormalStateEnter()
{
if (_inMoveState) MoveStateExit();
if (_inAttackState) AttackStateExit();
if (_inSkillState) SkillStateExit();
//if (_inDepState) DepStateExit();
}
// When move state, coloring movable adjacent tiles
// Current MoveStateEnter() shows only adjacent tiles. If moving mechanism of model changes, this should be changed.
public void MoveStateEnter()
{
// State change
if (_inMoveState) return;
if (_inAttackState) AttackStateExit();
if (_inSkillState) SkillStateExit();
//if (_inDepState) DepStateExit();
_inMoveState = true;
if (GameManager.Instance.selectedUnit == null)
{
return;
}
// Select movable adjacent tiles
_parameterPoints = GameManager.Instance.selectedUnit.PlacedPoint.Value.Adjacents();
for (int i = 0; i < _parameterPoints.Length; i++)
{
if (GameManager.Instance.selectedUnit.MovingAttackAct.IsActable(_parameterPoints[i]))
{
CivModel.Position pos = _parameterPoints[i].Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().FlickerRed();
}
else if (GameManager.Instance.selectedUnit.MoveAct.IsActable(_parameterPoints[i]))
{
CivModel.Position pos = _parameterPoints[i].Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().FlickerBlue();
}
}
}
void MoveStateExit()
{
_inMoveState = false;
if (_parameterPoints == null)
return;
for (int i = 0; i < _parameterPoints.Length; i++)
{
if (_parameterPoints[i] != null)
{
CivModel.Position pos = _parameterPoints[i].Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().StopFlickering();
}
}
_parameterPoints = null;
}
public void AttackStateEnter()
{
// State change
if (_inAttackState) return;
if (_inMoveState) MoveStateExit();
if (_inSkillState) SkillStateExit();
///if (_inDepState) DepStateExit();
_inAttackState = true;
if (GameManager.Instance.selectedUnit == null)
return;
// If GameManager.I.SelectedActor cannot attack
if (GameManager.Instance.selectedUnit.MovingAttackAct == null)
return;
// Select attackable adjacent tiles
_parameterPoints = GameManager.Instance.selectedUnit.PlacedPoint.Value.Adjacents();
for (int i = 0; i < _parameterPoints.Length; i++)
{
if (GameManager.Instance.selectedUnit.MovingAttackAct.IsActable(_parameterPoints[i]))
{
CivModel.Position pos = _parameterPoints[i].Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().FlickerRed();
}
}
}
void AttackStateExit()
{
_inAttackState = false;
if (_parameterPoints == null)
return;
for (int i = 0; i < _parameterPoints.Length; i++)
{
if (_parameterPoints[i] != null)
{
CivModel.Position pos = _parameterPoints[i].Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().StopFlickering();
}
}
_parameterPoints = null;
}
public void SkillStateEnter(int index)
{
// State change
if (_inSkillState && _currentSkill == index) return;
if (_inMoveState) MoveStateExit();
if (_inAttackState) AttackStateExit();
//if (_inDepState) DepStateExit();
_inSkillState = true;
_currentSkill = index;
// If SpecialActs[_currentSkill] is not parametered skill, this skill is immediately activated.
if (!GameManager.Instance.selectedUnit.SpecialActs[_currentSkill].IsParametered)
{
GameManager.Instance.selectedUnit.SpecialActs[_currentSkill].Act(null);
SkillStateExit();
return;
}
else
{
for (int i = 0; i < GameManager.Instance.Game.Terrain.Width; i++)
{
for (int j = 0; j < GameManager.Instance.Game.Terrain.Height; j++)
{
CivModel.Terrain.Point? pnt = GameManager.Instance.Game.Terrain.GetPoint(i, j);
if (GameManager.Instance.selectedUnit.SpecialActs[_currentSkill].IsActable(pnt))
{
CivModel.Position pos = pnt.Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().FlickerBlue();
}
}
}
}
}
void SkillStateExit()
{
int index = _currentSkill;
_inSkillState = false;
_currentSkill = -1;
if (GameManager.Instance.selectedUnit == null || !GameManager.Instance.selectedUnit.SpecialActs[index].IsParametered)
{
return;
}
else
{
for (int i = 0; i < GameManager.Instance.Game.Terrain.Width; i++)
{
for (int j = 0; j < GameManager.Instance.Game.Terrain.Height; j++)
{
CivModel.Terrain.Point? pnt = GameManager.Instance.Game.Terrain.GetPoint(i, j);
if (GameManager.Instance.selectedUnit.SpecialActs[index].IsActable(pnt))
{
CivModel.Position pos = pnt.Value.Position;
GameManager.Instance.Tiles[pos.X, pos.Y].GetComponent<HexTile>().StopFlickering();
}
}
}
}
}
//public void DepStateEnter(Production dep)
//{
// // State change
// if (dep == null || _inDepState) return;
// if (_inMoveState) MoveStateExit();
// if (_inAttackState) AttackStateExit();
// if (_inSkillState) SkillStateExit();
// _inDepState = true;
// _deployment = dep;
// // Select deploy tile
// CivModel.Terrain terrain = GameManager.I.Game.Terrain;
// for (int i = 0; i < terrain.Width; i++)
// {
// for (int j = 0; j < terrain.Height; j++)
// {
// CivModel.Terrain.Point point = terrain.GetPoint(i, j);
// if (dep.IsPlacable(point))
// {
// GameManager.I.Cells[point.Position.X, point.Position.Y].GetComponent<HexTile>().FlickerBlue();
// }
// }
// }
//}
//void DepStateExit()
//{
// _inDepState = false;
// _deployment = null;
// CivModel.Terrain terrain = GameManager.I.Game.Terrain;
// for (int i = 0; i < terrain.Width; i++)
// {
// for (int j = 0; j < terrain.Height; j++)
// {
// CivModel.Terrain.Point point = terrain.GetPoint(i, j);
// GameManager.I.Cells[point.Position.X, point.Position.Y].GetComponent<HexTile>().StopFlickering();
// }
// }
//}
} }
...@@ -583,7 +583,8 @@ PlayerSettings: ...@@ -583,7 +583,8 @@ PlayerSettings:
allowUnsafeCode: 0 allowUnsafeCode: 0
additionalIl2CppArgs: additionalIl2CppArgs:
scriptingRuntimeVersion: 1 scriptingRuntimeVersion: 1
apiCompatibilityLevelPerPlatform: {} apiCompatibilityLevelPerPlatform:
Standalone: 1
m_RenderingPath: 1 m_RenderingPath: 1
m_MobileRenderingPath: 1 m_MobileRenderingPath: 1
metroPackageName: Template_3D metroPackageName: Template_3D
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment