mirror of
https://github.com/evgen-app/steampunk-quest.git
synced 2024-12-04 22:03:45 +03:00
remove bugs
This commit is contained in:
parent
8db0339620
commit
07cb322deb
|
@ -530,6 +530,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
activeButton: {fileID: 0}
|
||||
_spawnerHint: {fileID: 8626876655442865689, guid: a7b304c08b9d7434397cbcb41be10391, type: 3}
|
||||
_hintUi: {fileID: 596106376145155034, guid: 3160771acd9895c41bbe853486b87470, type: 3}
|
||||
--- !u!114 &1075338029
|
||||
MonoBehaviour:
|
||||
|
@ -695,6 +696,81 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1280311250}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1407917303
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1407917304}
|
||||
- component: {fileID: 1407917306}
|
||||
- component: {fileID: 1407917305}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: tenpoints_tagget
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1407917304
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1407917303}
|
||||
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: 1734678667}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 360}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1407917305
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1407917303}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &1407917306
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1407917303}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1734678663
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -792,6 +868,7 @@ RectTransform:
|
|||
- {fileID: 220812419}
|
||||
- {fileID: 1280311251}
|
||||
- {fileID: 1849721964}
|
||||
- {fileID: 1407917304}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -848,7 +925,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: cc25c2ebea682fb4bbca72e0394f772b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
activePoint: {fileID: 8301818820257411171, guid: bbdd056ecf03534439f1562453e741b7, type: 3}
|
||||
activePoint: {fileID: 2220524135673857055, guid: 35e5251849225924a9fd142fc8375ecb, type: 3}
|
||||
--- !u!1 &1870994619
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -19,6 +19,7 @@ public class CrossButtonHandler : MonoBehaviour
|
|||
_pointSpawner = Object.FindObjectOfType<activePointSpawner>();
|
||||
}
|
||||
void Update() {
|
||||
Debug.Log(active);
|
||||
if (Input.GetMouseButtonDown(0)) {
|
||||
if (Vector3.Distance(Input.mousePosition, gameObject.transform.position) < 100){
|
||||
active = true;
|
||||
|
|
|
@ -10,7 +10,6 @@ public class HintSpawner : MonoBehaviour
|
|||
private GameObject _hint;
|
||||
[SerializeField]
|
||||
private GameObject _spawnerHint;
|
||||
private GameObject _activeButtonSpawner;
|
||||
[SerializeField]
|
||||
private GameObject _hintUi;
|
||||
private int _idxBuffer = -1;
|
||||
|
@ -19,7 +18,6 @@ public class HintSpawner : MonoBehaviour
|
|||
void Start() {
|
||||
_notCheckedButtons = new List<GameObject>();
|
||||
_cellOperator = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CellSpawnAndOperate>();
|
||||
_activeButtonSpawner = GameObject.FindGameObjectWithTag("tenpoints_activeButtonSpawner");
|
||||
}
|
||||
|
||||
int NearestGameObject() {
|
||||
|
@ -27,6 +25,7 @@ public class HintSpawner : MonoBehaviour
|
|||
int counter = 0;
|
||||
double minDist = Mathf.Infinity;
|
||||
foreach(GameObject point in _notCheckedButtons) {
|
||||
if (point == null) continue;
|
||||
double dist = Vector3.Distance(point.transform.position, activeButton.transform.position);
|
||||
if (dist < minDist) {
|
||||
idx = counter;
|
||||
|
@ -54,7 +53,7 @@ public class HintSpawner : MonoBehaviour
|
|||
|
||||
void Update() {
|
||||
_notCheckedButtons = _cellOperator.getNotCheckedButtons();
|
||||
if (!activeButton) return;
|
||||
if (activeButton == null) return;
|
||||
int idx = NearestGameObject();
|
||||
if (_idxBuffer == idx) {
|
||||
return;
|
||||
|
|
|
@ -9,6 +9,8 @@ TagManager:
|
|||
- dialog_canvas
|
||||
- tenpoints_disabled
|
||||
- tenpoints_startpos
|
||||
- chest
|
||||
- tenpoints_tagget
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
|
Loading…
Reference in New Issue
Block a user