Commit ed5b95ee authored by 15박보승's avatar 15박보승

구름의 높이가 최대 높이 기록에 따라 달라지도록 구현/최대 높이 기록을 보여주는 UI 추가/MapManager 작업중

parent af62aded
fileFormatVersion: 2
guid: 69aef0102c5caac4fb4391e08505dca0
guid: 19ac9e1f5954f44458c34d427b8ce316
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481694, a: 1}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
......@@ -445,12 +445,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 60348332}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 88, y: 50, z: 19}
m_LocalScale: {x: 20, y: 10, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 13
m_Father: {fileID: 235153515}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &167354114
PrefabInstance:
......@@ -521,6 +521,61 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 59619ab33246ea34496792e427cf9d6e, type: 3}
--- !u!1 &235153514
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 235153515}
- component: {fileID: 235153516}
m_Layer: 0
m_Name: Map
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &235153515
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 235153514}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 519663059}
- {fileID: 1973584119}
- {fileID: 2121979229}
- {fileID: 1064531523}
- {fileID: 2110329767}
- {fileID: 1353089533}
- {fileID: 60348337}
- {fileID: 245057451}
- {fileID: 1077217540}
m_Father: {fileID: 0}
m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &235153516
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 235153514}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f34fc5c75bd2c124487b69a78f0bbbed, type: 3}
m_Name:
m_EditorClassIdentifier:
mapBound:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 200, y: 200, z: 200}
--- !u!1 &245057446
GameObject:
m_ObjectHideFlags: 0
......@@ -623,13 +678,92 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 245057446}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 50, z: 95.5}
m_LocalScale: {x: 20, y: 10, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 14
m_Father: {fileID: 235153515}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &274921779
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 274921780}
- component: {fileID: 274921782}
- component: {fileID: 274921781}
m_Layer: 5
m_Name: MaxHeightText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &274921780
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 274921779}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 413298776}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -0.000061035156, y: -51.5}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &274921781
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 274921779}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 25
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 50
m_Alignment: 1
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 0 M
--- !u!222 &274921782
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 274921779}
m_CullTransparentMesh: 0
--- !u!1 &330379322
GameObject:
m_ObjectHideFlags: 0
......@@ -740,7 +874,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 160, y: 30}
m_SizeDelta: {x: 200, y: 60}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &369112312
MonoBehaviour:
......@@ -764,11 +898,11 @@ MonoBehaviour:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontSize: 50
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_MinSize: 5
m_MaxSize: 50
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
......@@ -1003,8 +1137,9 @@ RectTransform:
m_Children:
- {fileID: 330379323}
- {fileID: 369112311}
- {fileID: 274921780}
m_Father: {fileID: 0}
m_RootOrder: 15
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
......@@ -1026,39 +1161,9 @@ MonoBehaviour:
targetLockedUIPrefab: {fileID: 5037612186728958095, guid: 04d7a8bd5b7afea418585e2d9e55c109,
type: 3}
heightText: {fileID: 369112312}
maxHeightText: {fileID: 274921781}
enemyHealthUIPrefab: {fileID: 3062086775062663198, guid: 235a2d94312e86a42bbadc5591dce379,
type: 3}
--- !u!1 &424363087
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 424363088}
m_Layer: 0
m_Name: Fog
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &424363088
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 424363087}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -7.732192, y: -3.8081734, z: 13.804055}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1086498341}
m_Father: {fileID: 0}
m_RootOrder: 20
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &519663054
GameObject:
m_ObjectHideFlags: 0
......@@ -1161,12 +1266,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519663054}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 44.42591, y: 29.85, z: -7.354376}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 44.42591, y: 29.850002, z: -7.354376}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_Father: {fileID: 235153515}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &705507993
GameObject:
......@@ -1457,12 +1562,12 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 850429685}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.01939517, y: -4.39812, z: 15.06}
m_LocalPosition: {x: -0.01939517, y: 1.97188, z: 15.06}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1345154481}
m_Father: {fileID: 0}
m_RootOrder: 17
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &850429690
MonoBehaviour:
......@@ -1726,12 +1831,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1064531518}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -67.2, y: 50, z: -69.1}
m_LocalScale: {x: 20, y: 10, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 10
m_Father: {fileID: 235153515}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1077217536
GameObject:
......@@ -1818,12 +1923,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1077217536}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.19087136, y: 0.73, z: 13.512303}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.19087136, y: 7.1000004, z: 13.512304}
m_LocalScale: {x: 13.47, y: 20.01, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 19
m_Father: {fileID: 235153515}
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1086498340
GameObject:
......@@ -1836,8 +1941,9 @@ GameObject:
- component: {fileID: 1086498341}
- component: {fileID: 1086498343}
- component: {fileID: 1086498342}
- component: {fileID: 1086498344}
m_Layer: 0
m_Name: Particle System
m_Name: Cloud
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
......@@ -1850,12 +1956,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1086498340}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -386, z: -780}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -7.732192, y: -389.80817, z: -766.1959}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 424363088}
m_RootOrder: 0
m_Father: {fileID: 0}
m_RootOrder: 11
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
--- !u!199 &1086498342
ParticleSystemRenderer:
......@@ -2753,7 +2859,7 @@ ParticleSystem:
rateOverTime:
serializedVersion: 2
minMaxState: 0
scalar: 100
scalar: 50
minScalar: 10
maxCurve:
serializedVersion: 2
......@@ -3183,7 +3289,7 @@ ParticleSystem:
m_RotationOrder: 4
separateAxes: 0
ColorModule:
enabled: 0
enabled: 1
gradient:
serializedVersion: 2
minMaxState: 1
......@@ -6578,6 +6684,18 @@ ParticleSystem:
m_PostInfinity: 2
m_RotationOrder: 4
vectorLabel1_3: W
--- !u!114 &1086498344
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1086498340}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 11492ba4fa2cc8f46a9b9e3e1e3796e4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1171556382
GameObject:
m_ObjectHideFlags: 0
......@@ -6704,7 +6822,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1171556382}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -4.05, z: 0}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 887314839}
......@@ -6841,12 +6959,12 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1219641831}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.01939517, y: -1.48, z: 15.06}
m_LocalPosition: {x: -0.01939517, y: 4.89, z: 15.06}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1443389649}
m_Father: {fileID: 0}
m_RootOrder: 18
m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1219641836
MonoBehaviour:
......@@ -11746,12 +11864,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1353089528}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 50, z: -95.4}
m_LocalScale: {x: 20, y: 10, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 12
m_Father: {fileID: 235153515}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1439349407
GameObject:
......@@ -11817,7 +11935,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 16
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!198 &1443389647 stripped
ParticleSystem:
......@@ -12124,12 +12242,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1973584114}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -10.7, z: 19}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: -5.3, z: 19}
m_LocalScale: {x: 100, y: 10, z: 100}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 8
m_Father: {fileID: 235153515}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2110329762
GameObject:
......@@ -12233,12 +12351,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2110329762}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -103.1, y: 50, z: 19}
m_LocalScale: {x: 20, y: 10, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 11
m_Father: {fileID: 235153515}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2121979224
GameObject:
......@@ -12342,12 +12460,12 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2121979224}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 13.3, z: 64.4}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 13.299999, z: 64.4}
m_LocalScale: {x: 20, y: 10, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 9
m_Father: {fileID: 235153515}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &4933374739104284774
PrefabInstance:
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CloudBehaviour : MonoBehaviour
{
private ParticleSystem cloud;
private void Start()
{
cloud = GetComponent<ParticleSystem>();
GameManager.inst.OnMaxHeightChanged += SetHeight;
}
private void SetHeight(float height)
{
ParticleSystem.ColorOverLifetimeModule module = cloud.colorOverLifetime;
module.color = new Color(1, 1, 1, height / 500);
transform.position = new Vector3(transform.position.x, height - 400, transform.position.z);
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 11492ba4fa2cc8f46a9b9e3e1e3796e4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : SingletonBehaviour<GameManager>
{
private float _maxHeight = 0;
public float MaxHeight {
get
{
return _maxHeight;
}
set
{
Debug.Log(value);
_maxHeight = value;
OnMaxHeightChanged?.Invoke(value);
}
}
public Action<float> OnMaxHeightChanged;
}
fileFormatVersion: 2
guid: 4daf81bf030001f49bad8056a5fae1c0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -11,6 +11,8 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
[SerializeField]
private Text heightText;
[SerializeField]
private Text maxHeightText;
[SerializeField]
private GameObject enemyHealthUIPrefab;
......@@ -43,6 +45,11 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
}
}
public void UpdateMaxHeightText(float maxHeight)
{
maxHeightText.text = string.Format("{0:F1}", maxHeight) + " M";
}
public void UpdateHeightText(float height)
{
heightText.text = string.Format("{0:F1}", height) + " M";
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapManager : MonoBehaviour
{
private float nextMapBlockGenerateDistance;
private float nextEnemyGenerateDistance;
[SerializeField]
private Bounds mapBound;
private void OnDrawGizmos()
{
Gizmos.color = Color.blue;
Gizmos.DrawWireCube(mapBound.center, mapBound.size);
}
private void Start()
{
GameManager.inst.OnMaxHeightChanged += OnMaxHeightChanged;
}
public void OnMaxHeightChanged(float height)
{
mapBound.center = new Vector3(0, height, 0);
foreach (Transform child in transform)
{
if (child.position.y < height - 500)
{
child.gameObject.SetActive(false);
}
}
}
}
fileFormatVersion: 2
guid: f34fc5c75bd2c124487b69a78f0bbbed
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -121,6 +121,11 @@ public class PlayerController : MonoBehaviour
private void LateUpdate()
{
IngameUIManager.inst.UpdateHeightText(transform.position.y);
if (GameManager.inst.MaxHeight < transform.position.y)
{
IngameUIManager.inst.UpdateMaxHeightText(transform.position.y);
GameManager.inst.MaxHeight = transform.position.y;
}
}
private void FireHook()
......@@ -137,7 +142,6 @@ public class PlayerController : MonoBehaviour
hook.DisableHook();
isWired = false;
rb.useGravity = true;
//cc.enabled = true;
}
public void ActiveWire()
......@@ -146,6 +150,5 @@ public class PlayerController : MonoBehaviour
joint.distance = Vector3.Distance(transform.position, hook.transform.position);
isWired = true;
rb.useGravity = false;
//cc.enabled = false;
}
}
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