Started working on XP and leveling/stats system

This commit is contained in:
caleb
2025-10-09 08:49:20 +01:00
parent a22eefd770
commit 7745d73d06
219 changed files with 82809 additions and 538 deletions

View File

@@ -0,0 +1,43 @@
using UnityEngine;
namespace OccaSoftware.SuperSimpleSkybox.Runtime
{
/// <summary>
/// This component synchronizes the position of the VR Skybox with the targeted camera component.
/// </summary>
[ExecuteAlways]
[AddComponentMenu("OccaSoftware/Super Simple Skybox/VR-Compatible Skybox")]
public class VRSkybox : MonoBehaviour
{
[SerializeField]
Camera target;
void Start()
{
if (target == null)
return;
transform.position = target.transform.position;
}
int farClipPlaneCached;
void LateUpdate()
{
if (target == null)
return;
transform.position = target.transform.position;
if (farClipPlaneCached != (int)target.farClipPlane)
{
float targetScale = (int)target.farClipPlane - 1;
farClipPlaneCached = (int)target.farClipPlane;
transform.localScale = FloatToV3(targetScale);
}
}
Vector3 FloatToV3(float x)
{
return new Vector3(x, x, x);
}
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 840ced298170c424883a7c2c9735c545
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 210177
packageName: 'Super Simple Skybox: Dynamic Sky / Procedural Skybox (URP & BIRP)'
packageVersion: 4.2.1
assetPath: Packages/com.occasoftware.super-simple-skybox/Runtime/XR/VRSkybox.cs
uploadId: 612339