nejlepsi minihra, velmi dobre funguje, nepouzil jsem chatbota nai jednoud a vsechno jsem programoval pomoci libraries a moc me to bavilo, esing neni nejaky skvely ale funguje to na iphone, takze se to mozna rozbije pokud to zkusite runnout na androidu

This commit is contained in:
gravitrax-bublina
2026-03-28 10:18:32 +01:00
parent 9f71b6a84a
commit c11ca05ea8
112 changed files with 7180 additions and 98 deletions

Binary file not shown.

View File

@@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: 58ebc3ffa125a9949953f6704e0a8c39
AudioImporter:
externalObjects: {}
serializedVersion: 8
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

8
Assets/GameManager.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 74c99196e7d046a4497d6aa5ba358650
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,53 @@
using System;
using UnityEngine;
public enum TaskType
{
Task //TODO: Typy úkolù
}
public interface ITask
{
public string TaskID { get; } // Unikátní ID úkolu pro server
public TaskType TaskType { get; } // Typ úkolu
public string TaskName { get; } // Viditelný název úkolu
public (double, double) TaskLocation { get; } // Polohy na mapì
public bool IsCompleted { get; } // Stav dokonèení úkolu
void Initialize(Action<ITask> onCompleted); // Vytvoøení tasku + naètení postupu
void ExitTask(Action<ITask> onExit); // Pøi opuštìní úkolu poslat hotovo / uložit postup / reset
void Complete(); // Oznaèit úkol jako dokonèený, poslat na server a zavøít
}
/* Ukázoková implementace ITask
public class Wires : ITask{
public string TaskID { get; set; } // Unikátní ID úkolu pro server
public TaskType TaskType { get; set; } // Typ úkolu
public string TaskName { get; set; } // Viditelný název úkolu
public (double, double) TaskLocation { get; set; } // Poloha na mapì
public bool IsCompleted { get; private set; } // Stav dokonèení úkolu
private Action<ITask> _onCompleted;
public void Initialize(Action<ITask> onCompleted) // Vytvoøení tasku
{
IsCompleted = false;
_onCompleted = onCompleted;
}
public void ExitTask(Action<ITask> onExit) //Zavøení tasku
{
onExit?.Invoke(this);
}
public void Complete() // Dokonèení tasku a zavøení
{
IsCompleted = true;
_onCompleted?.Invoke(this);
ExitTask(null);
}
}
*/

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 743fed9d96a90254c88556de9fee92b0

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bfd97d0fee743f945a3d47b571fe9f20
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Materials.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2f6ce7f674a77664ead5dbb89193e587
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Readme.asset.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: befd731805f7270498a643333899b479
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Scenes.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fe6cecdde8bb6e1489d0b7e5b793ce84
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6a18d9b328b6a794da5d050347950362
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Scripts.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b8ce5b30e6200134bae071db3ae43149
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,27 @@
using UnityEngine;
public class FollowParentPositionOnly : MonoBehaviour
{
public Transform parent;
private Quaternion initialRotation;
private Vector3 worldOffset;
void Start()
{
if (parent == null)
parent = transform.parent;
// Store offset in WORLD space
worldOffset = transform.position - parent.position;
initialRotation = transform.rotation;
}
void LateUpdate()
{
if (parent == null) return;
// Move child using stored world offset
transform.position = parent.position + worldOffset;
transform.rotation = initialRotation;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b159266533f64ba4eb30ef6112cc4611

View File

@@ -0,0 +1,30 @@
using UnityEngine;
public class GyroPlatformController : MonoBehaviour
{
public Rigidbody ball;
public float forceStrength = 30f;
public float dampingPerSecond = 0.9f;
void Start()
{
if (SystemInfo.supportsGyroscope)
{
Input.gyro.enabled = true;
}
}
void FixedUpdate()
{
if (ball == null) return;
Vector3 g = Input.gyro.gravity;
Vector3 force = new Vector3(g.x, 0f, g.y);
ball.AddForce(force * forceStrength, ForceMode.Acceleration);
float frameDamping = Mathf.Pow(dampingPerSecond, Time.deltaTime);
ball.linearVelocity *= frameDamping;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: d665da208a5a3ad408e85341263c60e5

View File

@@ -0,0 +1,33 @@
using UnityEngine;
public class HoleGoalTrigger : MonoBehaviour
{
[Tooltip("Optional: assign the ball rigidbody or leave empty to accept any Rigidbody with tag Ball.")]
public Rigidbody ballRigidbody;
[Tooltip("If true, checks tag 'Ball' when ballRigidbody not assigned.")]
public bool requireBallTag = true;
public System.Action OnBallScored;
private void OnTriggerEnter(Collider other)
{
if (ballRigidbody != null)
{
if (other.attachedRigidbody == ballRigidbody)
{
OnBallScored?.Invoke();
}
return;
}
if (other.attachedRigidbody == null) return;
if (requireBallTag)
{
if (!other.CompareTag("Ball")) return;
}
OnBallScored?.Invoke();
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e6bad0eb7441229448191433d8a9f758

View File

@@ -0,0 +1,30 @@
using UnityEngine;
public class PlayAudioOnCamera : MonoBehaviour
{
public AudioClip clip; // assign your audio file in the Inspector
private AudioSource audioSource;
void Start()
{
// Get or add an AudioSource to this GameObject
audioSource = gameObject.GetComponent<AudioSource>();
if (audioSource == null)
{
audioSource = gameObject.AddComponent<AudioSource>();
}
// Assign the audio clip
if (clip != null)
{
audioSource.clip = clip;
audioSource.playOnAwake = false;
audioSource.loop = false; // change to true if you want looping
audioSource.Play();
}
else
{
Debug.LogWarning("PlayAudioOnCamera: No audio clip assigned!");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 37f33c8b63e5b384db6a385b909b27aa

View File

@@ -0,0 +1,29 @@
using UnityEngine;
public class TeleportOnTrigger : MonoBehaviour
{
[Header("Teleport Target")]
public Transform targetPosition;
private void OnTriggerEnter(Collider other)
{
if (targetPosition == null) return;
Rigidbody rb = other.attachedRigidbody;
if (rb != null)
{
// STOP ALL MOTION
rb.linearVelocity = Vector3.zero;
rb.angularVelocity = Vector3.zero;
// TELEPORT
rb.position = targetPosition.position;
}
else
{
// Non-physics objects
other.transform.position = targetPosition.position;
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 2e101cb487f02244592e16548d98f0b5

View File

@@ -0,0 +1,187 @@
using System;
using UnityEngine;
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 bool IsCompleted { get; private set; }
private Action<ITask> _onCompletedCallback;
// =========================
// MINIGAME REFERENCES
// =========================
[Header("References")]
public GyroPlatformController platformController;
public HoleGoalTrigger goalTrigger;
public Rigidbody ball;
[Header("Audio")]
public AudioClip startSound;
public AudioClip winSound;
private AudioSource audioSource;
[Header("Game State")]
public bool isActive = false;
[Header("Win Behavior")]
public bool freezeOnWin = true;
public bool disableBallOnWin = false;
// =========================
// UNITY LIFECYCLE
// =========================
void Awake()
{
if (platformController == null) platformController = FindFirstObjectByType<GyroPlatformController>();
if (goalTrigger == null) goalTrigger = FindFirstObjectByType<HoleGoalTrigger>();
if (Camera.main != null)
{
audioSource = Camera.main.GetComponent<AudioSource>();
if (audioSource == null)
audioSource = Camera.main.gameObject.AddComponent<AudioSource>();
}
}
void Start()
{
if (goalTrigger != null)
{
goalTrigger.OnBallScored += HandleWin;
}
if (ball != null && goalTrigger != null)
{
goalTrigger.ballRigidbody = ball;
}
}
void OnDestroy()
{
if (goalTrigger != null)
goalTrigger.OnBallScored -= HandleWin;
}
// =========================
// TASK LIFECYCLE
// =========================
public void Initialize(Action<ITask> onCompleted)
{
Debug.Log("Initializing Tilt Hole Task");
IsCompleted = false;
isActive = true;
_onCompletedCallback = onCompleted;
if (platformController != null)
platformController.enabled = true;
if (ball != null)
{
ball.isKinematic = false;
ball.linearVelocity = Vector3.zero;
ball.angularVelocity = Vector3.zero;
}
if (startSound != null && audioSource != null)
{
audioSource.PlayOneShot(startSound);
}
}
public void ExitTask(Action<ITask> onExit)
{
Debug.Log("Exiting Tilt Hole Task");
isActive = false;
if (platformController != null)
platformController.enabled = false;
onExit?.Invoke(this);
}
public void Complete()
{
if (IsCompleted) return;
Debug.Log("Task Complete: Tilt Hole");
IsCompleted = true;
isActive = false;
if (winSound != null && audioSource != null)
{
audioSource.PlayOneShot(winSound);
}
_onCompletedCallback?.Invoke(this);
ExitTask(null);
}
// =========================
// MINIGAME WIN EVENT
// =========================
private void HandleWin()
{
if (!isActive) return;
Debug.Log("Ball reached hole.");
if (freezeOnWin)
{
if (platformController != null)
platformController.enabled = false;
if (ball != null)
{
ball.linearVelocity = Vector3.zero;
ball.angularVelocity = Vector3.zero;
ball.isKinematic = true;
}
}
if (disableBallOnWin && ball != null)
{
ball.gameObject.SetActive(false);
}
Complete(); // 🔥 THIS completes the task
}
// =========================
// DEBUG GUI
// =========================
void OnGUI()
{
GUIStyle s = new GUIStyle(GUI.skin.label);
s.fontSize = 24;
if (isActive)
{
s.normal.textColor = Color.white;
GUI.Label(new Rect(10, 10, 700, 30),
"Goal: Tilt platform to roll the ball into the hole.", s);
}
else if (IsCompleted)
{
s.normal.textColor = Color.yellow;
GUI.Label(new Rect(10, 10, 700, 30),
"Task Completed!", s);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9f70c5a8e211b7142b26b4ea95bf2348

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: a2d62d3ffa507924ab3a6fd97f185f3e

8
Assets/Settings.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3c41f51487bbe394b9b8568d1b254bd4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bbad6d4e785a4584da7dda5f1bda30d5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,55 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 15003, guid: 0000000000000000e000000000000000, type: 0}
m_Name: "Android\u2122 1"
m_EditorClassIdentifier: UnityEditor.dll::UnityEditor.Build.Profile.BuildProfile
m_AssetVersion: 1
m_BuildTarget: 13
m_Subtarget: 0
m_PlatformId: b9b35072a6f44c2e863f17467ea3dc13
m_PlatformBuildProfile:
rid: 240730859082350731
m_OverrideGlobalSceneList: 0
m_Scenes: []
m_ScriptingDefines: []
m_PlayerSettingsYaml:
m_Settings: []
references:
version: 2
RefIds:
- rid: 240730859082350731
type: {class: AndroidPlatformBuildSettings, ns: UnityEditor.Android, asm: UnityEditor.Android.Extensions}
data:
m_Development: 0
m_ConnectProfiler: 0
m_BuildWithDeepProfilingSupport: 0
m_AllowDebugging: 0
m_WaitForManagedDebugger: 0
m_ManagedDebuggerFixedPort: 0
m_ExplicitNullChecks: 0
m_ExplicitDivideByZeroChecks: 0
m_ExplicitArrayBoundsChecks: 0
m_CompressionType: 2
m_InstallInBuildFolder: 0
m_InsightsSettingsContainer:
m_BuildProfileEngineDiagnosticsState: 2
m_BuildSubtarget: 0
m_BuildSystem: 1
m_ExportAsGoogleAndroidProject: 0
m_DebugSymbolLevel: 1
m_DebugSymbolFormat: 5
m_CurrentDeploymentTargetId: __builtin__target_default
m_BuildType: 2
m_LinkTimeOptimization: 0
m_BuildAppBundle: 0
m_IPAddressToConnect:
m_SymlinkSources: 0

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9496285097e5d904da120cdcec6534dc
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -29,7 +29,7 @@ MonoBehaviour:
- rid: 4246746364202188844
type: {class: AndroidPlatformBuildSettings, ns: UnityEditor.Android, asm: UnityEditor.Android.Extensions}
data:
m_Development: 0
m_Development: 1
m_ConnectProfiler: 0
m_BuildWithDeepProfilingSupport: 0
m_AllowDebugging: 0
@@ -45,10 +45,10 @@ MonoBehaviour:
m_BuildSubtarget: 0
m_BuildSystem: 1
m_ExportAsGoogleAndroidProject: 0
m_DebugSymbolLevel: 1
m_DebugSymbolLevel: 4
m_DebugSymbolFormat: 5
m_CurrentDeploymentTargetId: __builtin__target_default
m_BuildType: 2
m_BuildType: 1
m_LinkTimeOptimization: 0
m_BuildAppBundle: 0
m_IPAddressToConnect:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7f18313555a02cd48bc22d29d0f2ff55
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,49 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 15003, guid: 0000000000000000e000000000000000, type: 0}
m_Name: iOS
m_EditorClassIdentifier: UnityEditor.dll::UnityEditor.Build.Profile.BuildProfile
m_AssetVersion: 1
m_BuildTarget: 9
m_Subtarget: 0
m_PlatformId: ad48d16a66894befa4d8181998c3cb09
m_PlatformBuildProfile:
rid: 4718407457732296746
m_OverrideGlobalSceneList: 0
m_Scenes: []
m_ScriptingDefines:
-
m_PlayerSettingsYaml:
m_Settings: []
references:
version: 2
RefIds:
- rid: 4718407457732296746
type: {class: iOSPlatformSettings, ns: UnityEditor.iOS, asm: UnityEditor.iOS.Extensions}
data:
m_Development: 0
m_ConnectProfiler: 0
m_BuildWithDeepProfilingSupport: 0
m_AllowDebugging: 0
m_WaitForManagedDebugger: 0
m_ManagedDebuggerFixedPort: 0
m_ExplicitNullChecks: 0
m_ExplicitDivideByZeroChecks: 0
m_ExplicitArrayBoundsChecks: 0
m_CompressionType: 0
m_InstallInBuildFolder: 0
m_InsightsSettingsContainer:
m_BuildProfileEngineDiagnosticsState: 2
m_iOSXcodeBuildConfig: 1
m_SymlinkSources: 0
m_PreferredXcode:
m_SymlinkTrampoline: 0

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 18829ddd933a57c489872a4f1a3942e4
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 526aab55ceaf10142a59ee4d62fe8f42
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0e9d05516516cba48aff23bd436701ca
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e6ba5b26dda963e43beba7012129f6a5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9c73e51f432aa184cb1408179eb09d3f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1fe0ebf7f09ec7e4fa76e81c31b87dde
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3dc1b9d50da01394198653f975d9c13d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7bfdf167f826294468ffbde02bb390f1
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
Assets/TutorialInfo.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2692316a8a73b434783a8c8c50c49ac0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d8c6f31643437cf4fa0e66ec2ff9a2e2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 95952c7b1590baf479a484d39d256da9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
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: Standalone
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: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7717e22d410f9a444be1699f27f08476
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 478503718c5a2c449bf8efbdda9c5aa2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ffed5da1f0e08a5409de9dfef22c21f3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 84b2aaf916697844694b8831472d3e0e

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: bd183dd179558504ab1767087b1efc32

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8a3ae6902f1c0f640a60306c36bf7976
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

7
Assets/Untitled.stl.meta Normal file
View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2e89477d2c2cb534988b1a3912bf69dd
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: 26709d992d8a99b4791083f116c56a36
AudioImporter:
externalObjects: {}
serializedVersion: 8
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

7
Assets/dd.unity.meta Normal file
View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8f9e944b2f23a444588ce2e4ac78b0f0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 74379ac554348f84c8d3abeb440b79b9
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

110
Assets/koulickaone.fbx.meta Normal file
View File

@@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: 7fd80bd46d706b042a137593bf706d58
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -128,9 +128,8 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 871248415}
- component: {fileID: 871248417}
- component: {fileID: 871248419}
- component: {fileID: 871248418}
- component: {fileID: 871248420}
m_Layer: 0
m_Name: gamemanager
m_TagString: Untagged
@@ -153,43 +152,6 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &871248417
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 871248414}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 26e1ff67a7e61914e9bb088f173f2a24, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::GyroTiltController
enableGyroOnStart: 1
smoothing: 0.5
leftTiltThreshold: -45
rightTiltThreshold: 45
deadzoneAngle: 10
visualTarget: {fileID: 0}
visualRotationMultiplier: 1
--- !u!114 &871248418
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 871248414}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea2473a46d8c97e4e9cbffeebb00b9da, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
platformController: {fileID: 871248419}
goalTrigger: {fileID: 1036109233}
ball: {fileID: 3655566030548358981}
isActive: 1
freezeOnWin: 1
disableBallOnWin: 0
--- !u!114 &871248419
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -202,15 +164,28 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d665da208a5a3ad408e85341263c60e5, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
platform: {fileID: 6263590706582785712}
enableGyroOnStart: 1
calibrateOnStart: 1
maxTiltAngle: 15
rotationLerpSpeed: 8
invertRoll: 0
invertPitch: 0
simulateInEditor: 1
simulatedTiltSpeed: 60
ball: {fileID: 3655566030548358981}
forceStrength: 15
--- !u!114 &871248420
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 871248414}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9f70c5a8e211b7142b26b4ea95bf2348, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
platformController: {fileID: 871248419}
goalTrigger: {fileID: 1036109236}
ball: {fileID: 3655566030548358981}
startSound: {fileID: 0}
winSound: {fileID: 0}
isActive: 1
freezeOnWin: 1
disableBallOnWin: 0
--- !u!1 &1036109232
GameObject:
m_ObjectHideFlags: 0
@@ -221,7 +196,7 @@ GameObject:
m_Component:
- component: {fileID: 1036109235}
- component: {fileID: 1036109234}
- component: {fileID: 1036109233}
- component: {fileID: 1036109236}
m_Layer: 0
m_Name: HoleTrigger
m_TagString: Untagged
@@ -229,20 +204,6 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1036109233
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1036109232}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8514da13021b1044dae917c2a9c29b3c, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
ballRigidbody: {fileID: 3655566030548358981}
requireBallTag: 1
--- !u!65 &1036109234
BoxCollider:
m_ObjectHideFlags: 0
@@ -279,6 +240,20 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1036109236
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1036109232}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e6bad0eb7441229448191433d8a9f758, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
ballRigidbody: {fileID: 3655566030548358981}
requireBallTag: 1
--- !u!1 &1078774431
GameObject:
m_ObjectHideFlags: 0
@@ -290,6 +265,9 @@ GameObject:
- component: {fileID: 1078774434}
- component: {fileID: 1078774433}
- component: {fileID: 1078774432}
- component: {fileID: 1078774436}
- component: {fileID: 1078774435}
- component: {fileID: 1078774437}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
@@ -314,8 +292,8 @@ Camera:
m_GameObject: {fileID: 1078774431}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_ClearFlags: 2
m_BackGroundColor: {r: 0.764151, g: 0.65241194, b: 0.752649, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
@@ -338,7 +316,7 @@ Camera:
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
field of view: 131.6
orthographic: 0
orthographic size: 5
m_Depth: -1
@@ -364,13 +342,136 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1078774431}
serializedVersion: 2
m_LocalRotation: {x: 0.70688736, y: -0, z: -0, w: 0.7073261}
m_LocalPosition: {x: 0.020630836, y: 18.4, z: -20.1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalRotation: {x: 0.994375, y: -0, z: -0, w: 0.10591704}
m_LocalPosition: {x: 0.013403273, y: 0.0635, z: 0.1102}
m_LocalScale: {x: 0.016666666, y: 0.015950274, z: 0.03959131}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 89.96, y: 0, z: 0}
m_Father: {fileID: 1359128623787926744}
m_LocalEulerAnglesHint: {x: 167.84, y: 0, z: 0}
--- !u!114 &1078774435
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1078774431}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 37f33c8b63e5b384db6a385b909b27aa, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
clip: {fileID: 8300000, guid: 58ebc3ffa125a9949953f6704e0a8c39, type: 3}
--- !u!82 &1078774436
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1078774431}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_Resource: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 0.8200283
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &1078774437
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1078774431}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b159266533f64ba4eb30ef6112cc4611, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
parent: {fileID: 0}
--- !u!1 &1757180458
GameObject:
m_ObjectHideFlags: 0
@@ -533,10 +634,11 @@ Transform:
m_GameObject: {fileID: 1498391756221246888}
serializedVersion: 2
m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071067}
m_LocalPosition: {x: -1.2375925, y: 4.0747256, z: -18.647648}
m_LocalScale: {x: 100, y: 99.999985, z: 99.999985}
m_LocalPosition: {x: 1.26, y: 6.29, z: -20.48}
m_LocalScale: {x: 60, y: 60, z: 60}
m_ConstrainProportionsScale: 0
m_Children: []
m_Children:
- {fileID: 1078774434}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1382865335249670925
@@ -570,6 +672,7 @@ GameObject:
- component: {fileID: 1048207857388389211}
- component: {fileID: 3655566030548358980}
- component: {fileID: 3655566030548358981}
- component: {fileID: 3655566030548358982}
m_Layer: 0
m_Name: Sphere
m_TagString: Ball
@@ -641,7 +744,7 @@ Rigidbody:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1498391756221246888}
serializedVersion: 5
m_Mass: 1
m_Mass: 20
m_LinearDamping: 0
m_AngularDamping: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
@@ -660,6 +763,28 @@ Rigidbody:
m_Interpolate: 1
m_Constraints: 0
m_CollisionDetection: 1
--- !u!64 &3655566030548358982
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1498391756221246888}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 1
m_CookingOptions: 30
m_Mesh: {fileID: 4711208715938537054, guid: 7fd80bd46d706b042a137593bf706d58, type: 3}
--- !u!4 &4076998000468173039
Transform:
m_ObjectHideFlags: 0
@@ -668,12 +793,12 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1382865335249670925}
serializedVersion: 2
m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071067}
m_LocalPosition: {x: 2.5141964, y: 2.156714, z: -16.063879}
m_LocalScale: {x: 200, y: 199.99997, z: 100.999985}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0.033134237}
m_LocalScale: {x: 0.22222221, y: 0.125, z: 2.0199997}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_Father: {fileID: 6263590706582785712}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &6263590706582785712
Transform:
@@ -687,7 +812,8 @@ Transform:
m_LocalPosition: {x: 2.5141964, y: 0.50000185, z: -16.063879}
m_LocalScale: {x: 900, y: 1599.9998, z: 50}
m_ConstrainProportionsScale: 0
m_Children: []
m_Children:
- {fileID: 4076998000468173039}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &6491906927663981809
@@ -765,7 +891,7 @@ MeshCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 1
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: -7387706064836869012, guid: 7fd80bd46d706b042a137593bf706d58, type: 3}
--- !u!1 &7970178287526494298
@@ -813,10 +939,8 @@ MeshCollider:
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 1078774434}
- {fileID: 1757180460}
- {fileID: 871248415}
- {fileID: 6263590706582785712}
- {fileID: 4076998000468173039}
- {fileID: 1359128623787926744}
- {fileID: 1036109235}

7
Assets/pojekt.unity.meta Normal file
View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f01e25b5a8e60224fa8643bf4f074a71
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: