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,41 @@
using OccaSoftware.SuperSimpleSkybox.Runtime;
using UnityEngine;
namespace OccaSoftware.SuperSimpleSkybox.Demo
{
[AddComponentMenu("OccaSoftware/Super Simple Skybox/Sunrise and Sunset Callbacks Demo")]
public class OnSunriseSunsetDemo : MonoBehaviour
{
private Sun sun;
private void OnEnable()
{
sun = FindObjectOfType<Sun>();
if (sun != null)
{
sun.OnRise += Sunrise;
sun.OnSet += Sunset;
}
}
private void OnDisable()
{
if (sun != null)
{
sun.OnRise -= Sunrise;
sun.OnSet -= Sunset;
}
}
private void Sunrise()
{
Debug.Log("Sunrise Event Triggered");
}
private void Sunset()
{
Debug.Log("Sunset Event Triggered");
}
}
}