hasicak
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<<< HEAD:Assets/Scenes/Main Screen Scenes/bubak.unity.meta
|
||||
guid: 2ac55b32f60c0f44691e1588d19d610f
|
||||
guid: 7a66eff9f177f114799f4d97c3be195c
|
||||
========
|
||||
guid: d6a21cbd9c8f68f4fbe65763566ca7c9
|
||||
>>>>>>>> origin/main:Assets/2026-04-26 13-58-02.mp3.mkv.meta
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92df50b8fba934144a4c4dcaf506f9b4
|
||||
guid: d781b4c807a1e42499c4f584952647d2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -139,4 +139,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -138,4 +138,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -138,4 +138,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -135,4 +135,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
version: 10
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab64ec184fd7fc44f8b0941f67cf4eb2
|
||||
guid: cdfb65858f841a2499da19ddd01416df
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
7
Assets/Scenes/MiniGame-Kabely.unity.meta
Normal file
7
Assets/Scenes/MiniGame-Kabely.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce1820698308d19448040a3269fd08a1
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -7,10 +7,10 @@ public class TiltHoleMiniGameManager : MonoBehaviour, ITask
|
||||
// ITask PROPERTIES
|
||||
// =========================
|
||||
|
||||
public string TaskID { get; private set; } = "TILT_HOLE_01";
|
||||
public TaskType TaskType { get; private set; } = TaskType.Task;
|
||||
public string TaskName { get; private set; } = "Tilt Ball Into Hole";
|
||||
public (double, double) TaskLocation { get; private set; } = (0, 0);
|
||||
public string TaskID { get; set; } = "TILT_HOLE_01";
|
||||
public TaskType TaskType { get; set; } = TaskType.Task;
|
||||
public string TaskName { get; set; } = "Tilt Ball Into Hole";
|
||||
public (double, double) TaskLocation { get; set; } = (0, 0);
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
private Action<ITask> _onCompletedCallback;
|
||||
|
||||
@@ -2,10 +2,8 @@ using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using TMPro;
|
||||
<<<<<<< HEAD
|
||||
using GeoSus.Client;
|
||||
=======
|
||||
>>>>>>> origin/main
|
||||
|
||||
|
||||
public class FlappyBirdAllInOne : MonoBehaviour, ITask
|
||||
{
|
||||
@@ -39,17 +37,6 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
|
||||
public string TaskID { get; set; }
|
||||
public TaskType TaskType { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
<<<<<<< HEAD
|
||||
public Position TaskLocation { get; set; }
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
Time.timeScale = 1f;
|
||||
score = 0;
|
||||
UpdateScore();
|
||||
=======
|
||||
public (double, double) TaskLocation { get; set; }
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
@@ -60,17 +47,11 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
|
||||
_isPaused = false;
|
||||
score = 0;
|
||||
if (scoreText != null) UpdateScore();
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
if (isDead) return;
|
||||
=======
|
||||
if (isDead || _isPaused) return;
|
||||
>>>>>>> origin/main
|
||||
|
||||
HandleInput();
|
||||
HandleSpawning();
|
||||
}
|
||||
@@ -120,13 +101,11 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
|
||||
{
|
||||
score++;
|
||||
UpdateScore();
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
if (score >= 10)
|
||||
{
|
||||
Complete();
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
void UpdateScore()
|
||||
@@ -138,26 +117,20 @@ public class FlappyBirdAllInOne : MonoBehaviour, ITask
|
||||
public void GameOver()
|
||||
{
|
||||
isDead = true;
|
||||
<<<<<<< HEAD
|
||||
gameOverPanel.SetActive(true);
|
||||
Time.timeScale = 0f;
|
||||
=======
|
||||
|
||||
_isPaused = true;
|
||||
if (gameOverPanel != null) gameOverPanel.SetActive(true);
|
||||
// NOTE: do NOT set Time.timeScale — GPS and network must keep running
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
Time.timeScale = 1f;
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
||||
=======
|
||||
|
||||
// TaskManager will unload and reload via additive loading
|
||||
// Calling ExitTask lets TaskManager handle scene lifecycle
|
||||
ExitTask(_onExit);
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,38 +1,26 @@
|
||||
using UnityEngine;
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
[RequireComponent(typeof(Collider))]
|
||||
=======
|
||||
[RequireComponent(typeof(Rigidbody2D))]
|
||||
[RequireComponent(typeof(Collider2D))]
|
||||
>>>>>>> origin/main
|
||||
public class DraggableObject : MonoBehaviour
|
||||
{
|
||||
[Header("Přetahování")]
|
||||
public float dragSmoothness = 15f;
|
||||
|
||||
[Header("Vizuální zpětná vazba")]
|
||||
<<<<<<< HEAD
|
||||
public Renderer Renderer;
|
||||
=======
|
||||
public SpriteRenderer spriteRenderer;
|
||||
>>>>>>> origin/main
|
||||
public Color normalColor = Color.white;
|
||||
public Color dragColor = new Color(1f, 1f, 0.5f);
|
||||
public float scaleOnDrag = 1.15f;
|
||||
|
||||
<<<<<<< HEAD
|
||||
private Rigidbody rb;
|
||||
=======
|
||||
private Rigidbody2D rb;
|
||||
>>>>>>> origin/main
|
||||
private Camera mainCamera;
|
||||
private bool isDragging = false;
|
||||
private Vector3 targetPosition;
|
||||
private Vector3 originalScale;
|
||||
private bool hasBeenScored = false;
|
||||
<<<<<<< HEAD
|
||||
|
||||
private Plane _dragPlane;
|
||||
private Collider col;
|
||||
|
||||
@@ -44,35 +32,19 @@ public class DraggableObject : MonoBehaviour
|
||||
originalScale = transform.localScale;
|
||||
if (Renderer == null)
|
||||
Renderer = GetComponent<Renderer>();
|
||||
=======
|
||||
|
||||
void Awake()
|
||||
{
|
||||
rb = GetComponent<Rigidbody2D>();
|
||||
mainCamera = Camera.main;
|
||||
originalScale = transform.localScale;
|
||||
|
||||
if (spriteRenderer == null)
|
||||
spriteRenderer = GetComponent<SpriteRenderer>();
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
|
||||
rb.useGravity = true;
|
||||
rb.constraints = RigidbodyConstraints.FreezeRotation;
|
||||
=======
|
||||
rb.gravityScale = 0f;
|
||||
rb.constraints = RigidbodyConstraints2D.FreezeRotation;
|
||||
>>>>>>> origin/main
|
||||
targetPosition = transform.position;
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
HandleInput();
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
void FixedUpdate()
|
||||
{
|
||||
@@ -81,16 +53,11 @@ public class DraggableObject : MonoBehaviour
|
||||
Vector3 newPos = Vector3.Lerp(rb.position, targetPosition, Time.fixedDeltaTime * dragSmoothness);
|
||||
rb.MovePosition(newPos);
|
||||
}
|
||||
=======
|
||||
|
||||
if (isDragging)
|
||||
transform.position = Vector3.Lerp(transform.position, targetPosition, Time.deltaTime * dragSmoothness);
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
void HandleInput()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
if (Input.touchCount > 0)
|
||||
{
|
||||
Touch touch = Input.GetTouch(0);
|
||||
@@ -169,75 +136,15 @@ public class DraggableObject : MonoBehaviour
|
||||
if (Renderer != null)
|
||||
{
|
||||
Renderer.material.color = normalColor;
|
||||
=======
|
||||
|
||||
if (Input.touchCount > 0)
|
||||
{
|
||||
Touch touch = Input.GetTouch(0);
|
||||
Vector3 worldPos = mainCamera.ScreenToWorldPoint(new Vector3(touch.position.x, touch.position.y, 10f));
|
||||
|
||||
if (touch.phase == TouchPhase.Began) TryStartDrag(worldPos);
|
||||
else if (touch.phase == TouchPhase.Moved ||
|
||||
touch.phase == TouchPhase.Stationary) { if (isDragging) targetPosition = worldPos; }
|
||||
else if (touch.phase == TouchPhase.Ended ||
|
||||
touch.phase == TouchPhase.Canceled) { if (isDragging) EndDrag(); }
|
||||
}
|
||||
// na twest pro myŠ
|
||||
else
|
||||
{
|
||||
Vector3 worldPos = mainCamera.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 10f));
|
||||
|
||||
if (Input.GetMouseButtonDown(0)) TryStartDrag(worldPos);
|
||||
else if (Input.GetMouseButton(0) && isDragging) targetPosition = worldPos;
|
||||
else if (Input.GetMouseButtonUp(0) && isDragging) EndDrag();
|
||||
}
|
||||
}
|
||||
|
||||
void TryStartDrag(Vector3 worldPos)
|
||||
{
|
||||
if (GetComponent<Collider2D>().OverlapPoint(worldPos))
|
||||
StartDrag(worldPos);
|
||||
}
|
||||
|
||||
void StartDrag(Vector3 worldPos)
|
||||
{
|
||||
isDragging = true;
|
||||
rb.linearVelocity = Vector2.zero;
|
||||
targetPosition = worldPos;
|
||||
|
||||
transform.localScale = originalScale * scaleOnDrag;
|
||||
if (spriteRenderer != null)
|
||||
{
|
||||
spriteRenderer.color = dragColor;
|
||||
spriteRenderer.sortingOrder = 10;
|
||||
}
|
||||
}
|
||||
|
||||
void EndDrag()
|
||||
{
|
||||
isDragging = false;
|
||||
transform.localScale = originalScale;
|
||||
if (spriteRenderer != null)
|
||||
{
|
||||
spriteRenderer.color = normalColor;
|
||||
spriteRenderer.sortingOrder = 0;
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
}
|
||||
|
||||
public void OnScored()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
Debug.Log("Object scored");
|
||||
if (hasBeenScored) return;
|
||||
hasBeenScored = true;
|
||||
isDragging = false;
|
||||
=======
|
||||
if (hasBeenScored) return;
|
||||
hasBeenScored = true;
|
||||
isDragging = false;
|
||||
|
||||
>>>>>>> origin/main
|
||||
StartCoroutine(SinkIntoHole());
|
||||
}
|
||||
|
||||
@@ -252,24 +159,12 @@ public class DraggableObject : MonoBehaviour
|
||||
elapsed += Time.deltaTime;
|
||||
float t = elapsed / duration;
|
||||
transform.localScale = Vector3.Lerp(startScale, Vector3.zero, t);
|
||||
<<<<<<< HEAD
|
||||
if (Renderer != null)
|
||||
Renderer.material.color = new Color(normalColor.r, normalColor.g, normalColor.b, 1f - t);
|
||||
=======
|
||||
if (spriteRenderer != null)
|
||||
spriteRenderer.color = new Color(normalColor.r, normalColor.g, normalColor.b, 1f - t);
|
||||
>>>>>>> origin/main
|
||||
yield return null;
|
||||
}
|
||||
|
||||
gameObject.SetActive(false);
|
||||
<<<<<<< HEAD
|
||||
LevelManager.Instance?.RegisterItem();
|
||||
}
|
||||
}
|
||||
=======
|
||||
|
||||
LevelManager.Instance?.RegisterItem();
|
||||
}
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
<<<<<<< HEAD
|
||||
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(CapsuleCollider))]
|
||||
=======
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
>>>>>>> origin/main
|
||||
public class Hole : MonoBehaviour
|
||||
{
|
||||
[Header("Nastavení")]
|
||||
@@ -17,19 +13,9 @@ public class Hole : MonoBehaviour
|
||||
[Tooltip("Síla vtahování itemu k díře")]
|
||||
public float pullForce = 4f;
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
[Header("Vizuál")]
|
||||
public Renderer glowRenderer;
|
||||
=======
|
||||
[Header("Pohyb díry (volitelné)")]
|
||||
public bool hasMovement = false;
|
||||
public float moveSpeed = 2f;
|
||||
public Vector2 moveRange = new Vector2(1.5f, 0f);
|
||||
|
||||
[Header("Vizuál")]
|
||||
public SpriteRenderer glowRenderer;
|
||||
>>>>>>> origin/main
|
||||
|
||||
private Vector3 startPosition;
|
||||
private bool isGlowing = false;
|
||||
@@ -48,7 +34,6 @@ public class Hole : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
|
||||
}
|
||||
|
||||
@@ -67,29 +52,6 @@ public class Hole : MonoBehaviour
|
||||
Debug.Log($"Rigidbody detected: {other.gameObject.name}, distance: {dist}");
|
||||
Vector3 dir = (transform.position - rb.position).normalized;
|
||||
rb.AddForce(dir * pullForce * Time.fixedDeltaTime, ForceMode.Impulse);
|
||||
=======
|
||||
if (hasMovement)
|
||||
{
|
||||
float x = startPosition.x + Mathf.Sin(Time.time * moveSpeed) * moveRange.x;
|
||||
float y = startPosition.y + Mathf.Cos(Time.time * moveSpeed * 0.7f) * moveRange.y;
|
||||
transform.position = new Vector3(x, y, transform.position.z);
|
||||
}
|
||||
}
|
||||
|
||||
void OnTriggerStay2D(Collider2D other)
|
||||
{
|
||||
DraggableObject draggable = other.GetComponent<DraggableObject>();
|
||||
if (draggable == null) return;
|
||||
|
||||
float dist = Vector2.Distance(transform.position, other.transform.position);
|
||||
|
||||
|
||||
Rigidbody2D rb = other.GetComponent<Rigidbody2D>();
|
||||
if (rb != null)
|
||||
{
|
||||
Vector2 dir = ((Vector2)transform.position - rb.position).normalized;
|
||||
rb.AddForce(dir * pullForce * Time.fixedDeltaTime, ForceMode2D.Impulse);
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +62,7 @@ public class Hole : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
void OnTriggerEnter(Collider other)
|
||||
{
|
||||
Debug.Log($"Collider entered: {other.gameObject.name}");
|
||||
@@ -110,24 +72,14 @@ public class Hole : MonoBehaviour
|
||||
void OnTriggerExit(Collider other)
|
||||
{
|
||||
Debug.Log($"Collider exited: {other.gameObject.name}");
|
||||
=======
|
||||
void OnTriggerEnter2D(Collider2D other)
|
||||
{
|
||||
if (other.GetComponent<DraggableObject>() != null) SetGlow(true);
|
||||
}
|
||||
|
||||
void OnTriggerExit2D(Collider2D other)
|
||||
{
|
||||
>>>>>>> origin/main
|
||||
if (other.GetComponent<DraggableObject>() != null) SetGlow(false);
|
||||
}
|
||||
|
||||
void SetGlow(bool active)
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
|
||||
Debug.Log($"SetGlow: {active}");
|
||||
=======
|
||||
>>>>>>> origin/main
|
||||
|
||||
isGlowing = active;
|
||||
if (glowRenderer == null) return;
|
||||
glowRenderer.enabled = active;
|
||||
@@ -139,13 +91,9 @@ public class Hole : MonoBehaviour
|
||||
while (isGlowing && glowRenderer != null)
|
||||
{
|
||||
float t = Mathf.PingPong(Time.time * 3f, 1f);
|
||||
<<<<<<< HEAD
|
||||
Color c = glowRenderer.sharedMaterial.color;
|
||||
glowRenderer.sharedMaterial.color = new Color(c.r, c.g, c.b, Mathf.Lerp(0.3f, 0.9f, t));
|
||||
=======
|
||||
Color c = glowRenderer.color;
|
||||
glowRenderer.color = new Color(c.r, c.g, c.b, Mathf.Lerp(0.3f, 0.9f, t));
|
||||
>>>>>>> origin/main
|
||||
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
<<<<<<< HEAD
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using GeoSus.Client;
|
||||
=======
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using System;
|
||||
>>>>>>> origin/main
|
||||
|
||||
public class LevelManager : MonoBehaviour, ITask
|
||||
{
|
||||
@@ -15,68 +9,24 @@ public class LevelManager : MonoBehaviour, ITask
|
||||
|
||||
[Header("Nastavení levelu")]
|
||||
[Tooltip("Kolik itemů musí hráč trefit pro splnění levelu")]
|
||||
<<<<<<< HEAD
|
||||
public int itemsToScore = 2;
|
||||
=======
|
||||
|
||||
public int itemsToScore = 3;
|
||||
>>>>>>> origin/main
|
||||
|
||||
[Header("Event – vyvolá se po trefení všech itemů")]
|
||||
public UnityEvent OnAllItemsScored;
|
||||
|
||||
private int scoredCount = 0;
|
||||
|
||||
<<<<<<< HEAD
|
||||
public string TaskID { get; set; }
|
||||
|
||||
public TaskType TaskType { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
|
||||
public Position TaskLocation { get; set; }
|
||||
public (double, double) TaskLocation { get; set; }
|
||||
|
||||
public bool IsCompleted { get; private set; } = false;
|
||||
protected Action<ITask> OnCompleted;
|
||||
=======
|
||||
// ── ITask ────────────────────────────────────────────────────────────────
|
||||
public string TaskID { get; set; }
|
||||
public TaskType TaskType { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
public (double, double) TaskLocation { get; set; }
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
private Action<ITask> _onCompleted;
|
||||
private Action<ITask> _onExit;
|
||||
|
||||
public void Initialize(Action<ITask> onCompleted)
|
||||
{
|
||||
IsCompleted = false;
|
||||
_onCompleted = onCompleted;
|
||||
ResetCounter();
|
||||
// Wire OnAllItemsScored to Complete() if not already wired
|
||||
OnAllItemsScored.AddListener(Complete);
|
||||
}
|
||||
|
||||
public void Complete()
|
||||
{
|
||||
if (IsCompleted) return;
|
||||
IsCompleted = true;
|
||||
Debug.Log("[LevelManager] Task complete!");
|
||||
_onCompleted?.Invoke(this);
|
||||
ExitTask(_onExit);
|
||||
}
|
||||
|
||||
public void ExitTask(Action<ITask> onExit)
|
||||
{
|
||||
onExit?.Invoke(this);
|
||||
}
|
||||
// ─────────────────────────────────────────────────────────────────────────
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (Instance == null) Instance = this;
|
||||
else Destroy(gameObject);
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
|
||||
public void RegisterItem()
|
||||
{
|
||||
@@ -96,7 +46,6 @@ public class LevelManager : MonoBehaviour, ITask
|
||||
|
||||
public int GetScoredCount() => scoredCount;
|
||||
public int GetTotalCount() => itemsToScore;
|
||||
<<<<<<< HEAD
|
||||
|
||||
public void Initialize(Action<ITask> onCompleted)
|
||||
{
|
||||
@@ -119,7 +68,3 @@ public class LevelManager : MonoBehaviour, ITask
|
||||
OnCompleted?.Invoke(this);
|
||||
}
|
||||
}
|
||||
=======
|
||||
}
|
||||
|
||||
>>>>>>> origin/main
|
||||
|
||||
@@ -7,18 +7,11 @@ using System.Collections.Generic;
|
||||
public class ObjectSpawner : MonoBehaviour
|
||||
{
|
||||
public static ObjectSpawner Instance;
|
||||
<<<<<<< HEAD
|
||||
[SerializeField]
|
||||
private List<GameObject> spawnedHoles = new List<GameObject>();
|
||||
|
||||
[Header("Prefaby")]
|
||||
public GameObject[] objectPrefabs;
|
||||
=======
|
||||
|
||||
[Header("Prefaby")]
|
||||
public GameObject[] objectPrefabs;
|
||||
public GameObject holePrefab;
|
||||
>>>>>>> origin/main
|
||||
|
||||
[Header("Počty")]
|
||||
[Tooltip("Kolik předmětů spawnovat")]
|
||||
@@ -31,7 +24,7 @@ public class ObjectSpawner : MonoBehaviour
|
||||
public float holeMoveSpeed = 2f;
|
||||
|
||||
[Header("Spawn hranice (odpovídají kameře)")]
|
||||
<<<<<<< HEAD
|
||||
|
||||
public float minX = 1f;
|
||||
public float maxX = 1f;
|
||||
public float minY = 0f;
|
||||
@@ -39,20 +32,6 @@ public class ObjectSpawner : MonoBehaviour
|
||||
|
||||
|
||||
private List<GameObject> spawnedObjects = new List<GameObject>();
|
||||
|
||||
=======
|
||||
public float minX = -3.5f;
|
||||
public float maxX = 3.5f;
|
||||
public float minY = -5f;
|
||||
public float maxY = 4f;
|
||||
|
||||
[Header("Rodiče pro přehlednost (volitelné)")]
|
||||
public Transform objectParent;
|
||||
public Transform holeParent;
|
||||
|
||||
private List<GameObject> spawnedObjects = new List<GameObject>();
|
||||
private List<GameObject> spawnedHoles = new List<GameObject>();
|
||||
>>>>>>> origin/main
|
||||
|
||||
void Awake()
|
||||
{
|
||||
@@ -76,7 +55,6 @@ public class ObjectSpawner : MonoBehaviour
|
||||
LevelManager.Instance.ResetCounter();
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
//SpawnHoles();
|
||||
SpawnObjects();
|
||||
}
|
||||
@@ -117,52 +95,11 @@ public class ObjectSpawner : MonoBehaviour
|
||||
spawnedObjects.Add(obj);
|
||||
}
|
||||
Time.timeScale = 1f;
|
||||
=======
|
||||
SpawnHoles();
|
||||
SpawnObjects();
|
||||
}
|
||||
|
||||
void SpawnHoles()
|
||||
{
|
||||
for (int i = 0; i < holeCount; i++)
|
||||
{
|
||||
Vector2 pos = RandomPos(1f);
|
||||
GameObject hole = Instantiate(holePrefab, pos, Quaternion.identity, holeParent);
|
||||
|
||||
Hole h = hole.GetComponent<Hole>();
|
||||
if (h != null && holesMove)
|
||||
{
|
||||
h.hasMovement = true;
|
||||
h.moveSpeed = holeMoveSpeed;
|
||||
h.moveRange = new Vector2(Random.Range(0.8f, 1.8f), 0f);
|
||||
}
|
||||
|
||||
spawnedHoles.Add(hole);
|
||||
}
|
||||
}
|
||||
|
||||
void SpawnObjects()
|
||||
{
|
||||
for (int i = 0; i < objectCount; i++)
|
||||
{
|
||||
GameObject prefab = objectPrefabs[Random.Range(0, objectPrefabs.Length)];
|
||||
Vector2 pos = RandomPos(0.5f);
|
||||
GameObject obj = Instantiate(prefab, pos, Quaternion.identity, objectParent);
|
||||
|
||||
// Náhodná barva
|
||||
SpriteRenderer sr = obj.GetComponent<SpriteRenderer>();
|
||||
if (sr != null)
|
||||
sr.color = Random.ColorHSV(0f, 1f, 0.7f, 1f, 0.9f, 1f);
|
||||
|
||||
spawnedObjects.Add(obj);
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
foreach (var o in spawnedObjects) if (o != null) Destroy(o);
|
||||
<<<<<<< HEAD
|
||||
//foreach (var h in spawnedHoles) if (h != null) Destroy(h);
|
||||
//spawnedObjects.Clear();
|
||||
spawnedHoles.Clear();
|
||||
@@ -176,16 +113,5 @@ public class ObjectSpawner : MonoBehaviour
|
||||
Random.Range(-2f, 1.5f)
|
||||
);
|
||||
}
|
||||
=======
|
||||
foreach (var h in spawnedHoles) if (h != null) Destroy(h);
|
||||
spawnedObjects.Clear();
|
||||
spawnedHoles.Clear();
|
||||
}
|
||||
|
||||
Vector2 RandomPos(float margin) =>
|
||||
new Vector2(
|
||||
Random.Range(minX + margin, maxX - margin),
|
||||
Random.Range(minY + margin, maxY - margin)
|
||||
);
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class DraggableKey : MonoBehaviour,
|
||||
public string TaskID { get; set; }
|
||||
public TaskType TaskType { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
public Position TaskLocation { get; set; }
|
||||
public (double, double) TaskLocation { get; set; }
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
private Action<ITask> _onCompleted;
|
||||
|
||||
@@ -8,12 +8,11 @@ public class KeyminigameManager : MonoBehaviour
|
||||
private int correctCount = 0;
|
||||
public int totalKeys = 3;
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
/// <summary>Set by DraggableKey.Initialize() so CheckWin can fire Complete().</summary>
|
||||
[HideInInspector] public ITask taskRef;
|
||||
|
||||
>>>>>>> origin/main
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
@@ -22,32 +21,22 @@ public class KeyminigameManager : MonoBehaviour
|
||||
public void CheckWin()
|
||||
{
|
||||
correctCount++;
|
||||
<<<<<<< HEAD
|
||||
|
||||
if (correctCount >= totalKeys)
|
||||
{
|
||||
Debug.Log("WIN");
|
||||
=======
|
||||
Debug.Log($"Keys inserted: {correctCount}/{totalKeys}");
|
||||
|
||||
if (correctCount >= totalKeys)
|
||||
{
|
||||
Debug.Log("All keys inserted — task complete!");
|
||||
taskRef?.Complete();
|
||||
>>>>>>> origin/main
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void Fail()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);
|
||||
}
|
||||
}
|
||||
=======
|
||||
|
||||
Debug.Log("Wrong slot — exiting task.");
|
||||
taskRef?.ExitTask(null);
|
||||
// TaskManager handles unloading; no SceneManager.LoadScene here
|
||||
}
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
|
||||
|
||||
@@ -3,10 +3,8 @@ using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.SceneManagement;
|
||||
<<<<<<< HEAD
|
||||
using GeoSus.Client;
|
||||
=======
|
||||
>>>>>>> origin/main
|
||||
|
||||
|
||||
public class CableMiniGame : MonoBehaviour, ITask
|
||||
{
|
||||
@@ -16,31 +14,24 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
public string colorName;
|
||||
public Button sourceButton;
|
||||
public Button targetButton;
|
||||
<<<<<<< HEAD
|
||||
public Image cableImage;
|
||||
|
||||
[HideInInspector] public bool connected;
|
||||
}
|
||||
|
||||
=======
|
||||
|
||||
[HideInInspector] public bool connected;
|
||||
|
||||
// Line UI
|
||||
[HideInInspector] public GameObject lineObject;
|
||||
[HideInInspector] public RectTransform lineRect;
|
||||
[HideInInspector] public Image lineImage;
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
|
||||
|
||||
public string TaskID { get; set; }
|
||||
public TaskType TaskType { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
<<<<<<< HEAD
|
||||
public Position TaskLocation { get; set; }
|
||||
=======
|
||||
public (double, double) TaskLocation { get; set; }
|
||||
>>>>>>> origin/main
|
||||
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
private Action<ITask> _onCompleted;
|
||||
@@ -48,17 +39,7 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
|
||||
[Header("MiniGame Settings")]
|
||||
public Cable[] cables;
|
||||
<<<<<<< HEAD
|
||||
public string previousSceneName;
|
||||
public Color wrongAttemptColor = Color.white;
|
||||
public float blinkDuration = 0.2f;
|
||||
|
||||
private string selectedColor = null;
|
||||
|
||||
|
||||
public void Initialize(Action<ITask> onCompleted)
|
||||
{
|
||||
=======
|
||||
public Canvas canvas; // Assign your Canvas here in the inspector
|
||||
public string previousSceneName;
|
||||
public Color wrongAttemptColor = Color.white;
|
||||
@@ -74,20 +55,18 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
public void Initialize(Action<ITask> onCompleted)
|
||||
{
|
||||
Debug.Log("[Init] Initializing mini game...");
|
||||
>>>>>>> origin/main
|
||||
|
||||
IsCompleted = false;
|
||||
_onCompleted = onCompleted;
|
||||
|
||||
foreach (var cable in cables)
|
||||
<<<<<<< HEAD
|
||||
cable.connected = false;
|
||||
=======
|
||||
|
||||
{
|
||||
cable.connected = false;
|
||||
}
|
||||
|
||||
PrintAllCableStates("After Initialization");
|
||||
>>>>>>> origin/main
|
||||
|
||||
}
|
||||
|
||||
public void Complete()
|
||||
@@ -95,38 +74,14 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
if (IsCompleted) return;
|
||||
|
||||
IsCompleted = true;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
Debug.Log("[Complete] Task completed successfully!");
|
||||
>>>>>>> origin/main
|
||||
|
||||
_onCompleted?.Invoke(this);
|
||||
ExitTask(_onExit);
|
||||
}
|
||||
|
||||
public void ExitTask(Action<ITask> onExit)
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
onExit?.Invoke(this);
|
||||
}
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
foreach (var cable in cables)
|
||||
{
|
||||
Cable localCable = cable;
|
||||
|
||||
cable.sourceButton.onClick.AddListener(() => OnSourceClicked(localCable));
|
||||
cable.targetButton.onClick.AddListener(() => OnTargetClicked(localCable));
|
||||
}
|
||||
}
|
||||
|
||||
void OnSourceClicked(Cable cable)
|
||||
{
|
||||
if (cable.connected) return;
|
||||
|
||||
selectedColor = cable.colorName;
|
||||
=======
|
||||
Debug.Log("[ExitTask] Exiting task...");
|
||||
onExit?.Invoke(this);
|
||||
}
|
||||
@@ -169,21 +124,12 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
selectedColor = cable.colorName;
|
||||
Debug.Log($"[SourceClick] Selected color set to '{selectedColor}'");
|
||||
PrintAllCableStates("After Source Click");
|
||||
>>>>>>> origin/main
|
||||
|
||||
}
|
||||
|
||||
void OnTargetClicked(Cable cable)
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
if (selectedColor == null || cable.connected)
|
||||
return;
|
||||
|
||||
if (selectedColor == cable.colorName)
|
||||
{
|
||||
cable.cableImage.color = GetColorFromName(selectedColor);
|
||||
cable.connected = true;
|
||||
|
||||
=======
|
||||
Debug.Log($"[TargetClick] Clicked target of cable '{cable.colorName}'");
|
||||
|
||||
if (selectedColor == null)
|
||||
@@ -207,19 +153,12 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
DrawLine(cable);
|
||||
|
||||
PrintAllCableStates("After Correct Connection");
|
||||
>>>>>>> origin/main
|
||||
|
||||
CheckCompletion();
|
||||
}
|
||||
else
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
StartCoroutine(BlinkAndExit(cable.cableImage));
|
||||
}
|
||||
|
||||
selectedColor = null;
|
||||
}
|
||||
|
||||
=======
|
||||
Debug.Log($"[TargetClick] Wrong connection attempt! Selected: '{selectedColor}', Target: '{cable.colorName}'");
|
||||
PrintAllCableStates("Before BlinkAndExit");
|
||||
StartCoroutine(BlinkAndExit(cable));
|
||||
@@ -294,20 +233,13 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
// Completion Check
|
||||
// ------------------------------
|
||||
|
||||
>>>>>>> origin/main
|
||||
|
||||
void CheckCompletion()
|
||||
{
|
||||
foreach (var cable in cables)
|
||||
{
|
||||
if (!cable.connected)
|
||||
<<<<<<< HEAD
|
||||
return;
|
||||
}
|
||||
|
||||
Complete();
|
||||
}
|
||||
|
||||
=======
|
||||
{
|
||||
Debug.Log($"[CheckCompletion] Cable '{cable.colorName}' not yet connected.");
|
||||
return;
|
||||
@@ -322,7 +254,7 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
// Helpers
|
||||
// ------------------------------
|
||||
|
||||
>>>>>>> origin/main
|
||||
|
||||
Color GetColorFromName(string name)
|
||||
{
|
||||
switch (name.ToLower())
|
||||
@@ -331,27 +263,11 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
case "blue": return Color.blue;
|
||||
case "green": return Color.green;
|
||||
case "yellow": return Color.yellow;
|
||||
<<<<<<< HEAD
|
||||
case "purple": return new Color(0.5f, 0, 0.5f);
|
||||
=======
|
||||
>>>>>>> origin/main
|
||||
|
||||
default: return Color.white;
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
IEnumerator BlinkAndExit(Image img)
|
||||
{
|
||||
Color original = img.color;
|
||||
img.color = wrongAttemptColor;
|
||||
|
||||
yield return new WaitForSeconds(blinkDuration);
|
||||
|
||||
img.color = original;
|
||||
|
||||
ExitTask(_onExit);
|
||||
SceneManager.LoadScene(previousSceneName);
|
||||
=======
|
||||
IEnumerator BlinkAndExit(Cable cable)
|
||||
{
|
||||
if (cable.lineObject == null) CreateLineUI(cable);
|
||||
@@ -383,6 +299,5 @@ public class CableMiniGame : MonoBehaviour, ITask
|
||||
states += $"'{cable.colorName}': {(cable.connected ? "Connected" : "Not Connected")}, ";
|
||||
}
|
||||
Debug.Log(states.TrimEnd(' ', ','));
|
||||
>>>>>>> origin/main
|
||||
}
|
||||
}
|
||||
@@ -1,20 +1,8 @@
|
||||
<<<<<<< HEAD
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.SceneManagement;
|
||||
using GeoSus.Client;
|
||||
using System;
|
||||
|
||||
public class WindController : MonoBehaviour, ITask
|
||||
{
|
||||
[Header("Settings větru")]
|
||||
public float maxWindTorque = 8f;
|
||||
public float windChangeSpeed = 0.6f;
|
||||
public float gustInterval = 4f;
|
||||
=======
|
||||
using UnityEngine;
|
||||
|
||||
public class WindController : MonoBehaviour
|
||||
{
|
||||
[Header("settings větru")]
|
||||
[Tooltip("Maximální síla větru (kladná i záporná)")]
|
||||
@@ -27,7 +15,7 @@ public class WindController : MonoBehaviour
|
||||
public float gustInterval = 4f;
|
||||
|
||||
[Tooltip("Multiplier pro sílu vichřice")]
|
||||
>>>>>>> origin/main
|
||||
|
||||
public float gustMultiplier = 2.0f;
|
||||
|
||||
public float CurrentWindTorque { get; private set; }
|
||||
@@ -35,7 +23,6 @@ public class WindController : MonoBehaviour
|
||||
private float targetTorque;
|
||||
private float gustTimer;
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
private Action<ITask> _onCompleted;
|
||||
private Action<ITask> _onExit;
|
||||
@@ -43,11 +30,10 @@ public class WindController : MonoBehaviour
|
||||
public string TaskID { get; set; }
|
||||
public TaskType TaskType { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
public Position TaskLocation { get; set; }
|
||||
public (double, double) TaskLocation { get; set; }
|
||||
public bool IsCompleted { get; private set; }
|
||||
|
||||
=======
|
||||
>>>>>>> origin/main
|
||||
|
||||
void Start()
|
||||
{
|
||||
PickNewTargetTorque();
|
||||
@@ -56,7 +42,7 @@ public class WindController : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
|
||||
CurrentWindTorque = Mathf.Lerp(CurrentWindTorque, targetTorque, Time.deltaTime * windChangeSpeed);
|
||||
|
||||
gustTimer -= Time.deltaTime;
|
||||
@@ -67,27 +53,13 @@ public class WindController : MonoBehaviour
|
||||
|
||||
gustTimer = gustInterval;
|
||||
Invoke(nameof(PickNewTargetTorque), 0.8f);
|
||||
=======
|
||||
// Smoothly move wind toward target torque
|
||||
CurrentWindTorque = Mathf.Lerp(CurrentWindTorque, targetTorque, Time.deltaTime * windChangeSpeed);
|
||||
|
||||
// Occasional gusts
|
||||
gustTimer -= Time.deltaTime;
|
||||
if (gustTimer <= 0f)
|
||||
{
|
||||
// Apply a short gust by shifting target torque more aggressively
|
||||
float gust = Random.Range(-maxWindTorque, maxWindTorque) * gustMultiplier;
|
||||
targetTorque = Mathf.Clamp(gust, -maxWindTorque * gustMultiplier, maxWindTorque * gustMultiplier);
|
||||
|
||||
gustTimer = gustInterval;
|
||||
Invoke(nameof(PickNewTargetTorque), 0.8f); // gust lasts ~0.8s
|
||||
>>>>>>> origin/main
|
||||
// Smoothly move wind toward target torque
|
||||
CurrentWindTorque = Mathf.Lerp(CurrentWindTorque, targetTorque, Time.deltaTime * windChangeSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
private void PickNewTargetTorque()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
targetTorque = UnityEngine.Random.Range(-maxWindTorque, maxWindTorque);
|
||||
}
|
||||
|
||||
@@ -113,8 +85,4 @@ public class WindController : MonoBehaviour
|
||||
_onExit?.Invoke(this);
|
||||
}
|
||||
}
|
||||
=======
|
||||
targetTorque = Random.Range(-maxWindTorque, maxWindTorque);
|
||||
}
|
||||
}
|
||||
>>>>>>> origin/main
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: ffed5da1f0e08a5409de9dfef22c21f3
|
||||
=======
|
||||
guid: 90a0dcae2a28dbc488afff041a155933
|
||||
>>>>>>> origin/main
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,12 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: afdea084fa9cd5c48871a9bcc84d95e0
|
||||
=======
|
||||
guid: b9c8f9e5bbf063b4fb1152966129a495
|
||||
>>>>>>> origin/main
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: 40a9261b0dbdcea4b9562c6a85f035ec
|
||||
=======
|
||||
guid: 6a844507f0c87344d90cf121a7787214
|
||||
>>>>>>> origin/main
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,6 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: 5145a323a08373d4a9074774f7f3c501
|
||||
guid: 9ea95af2c84c9f849b7e336536ad2e0c
|
||||
=======
|
||||
guid: dbad2b6c9bd185540923b7342934e39e
|
||||
>>>>>>> origin/main
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: 3f5e4c6e6f8367342893fd7030d1b4cb
|
||||
guid: 12a4296967685ae4199be5761ef3a05e
|
||||
=======
|
||||
guid: 3919d291be0553e4ebdd5cb62ce994f4
|
||||
>>>>>>> origin/main
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: 8b02f5e5a2bd2df479219d58104b58e4
|
||||
guid: c18e5d53e072efa4ea79a41bb7855a1f
|
||||
=======
|
||||
guid: ada29dc2a8f88f34fbe9db1f0ec749af
|
||||
>>>>>>> origin/main
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: 9f4fa73205ab4db41871cc3e9260180f
|
||||
guid: 3c90a27b3d95bbc438834df641e276cc
|
||||
=======
|
||||
guid: 0f1c654fe4f7b3e47907315ebf701ac2
|
||||
>>>>>>> origin/main
|
||||
|
||||
@@ -7,7 +7,7 @@ TextureImporter:
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@@ -54,7 +54,7 @@ TextureImporter:
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
@@ -93,6 +93,45 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WindowsStoreApps
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
|
||||
Reference in New Issue
Block a user