Started working on XP and leveling/stats system
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "OccaSoftware.SuperSimpleSkybox.Demo",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:ee54ccb0344ed264090ebfc168b827b0"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6d1b31a770e02e48853fd7aefda1619
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
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/Samples/Demo/Scripts/OccaSoftware.SuperSimpleSkybox.Demo.asmdef
|
||||
uploadId: 612339
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 153ac32ff88c2354f8d7199c1eb5b93f
|
||||
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/Samples/Demo/Scripts/OnSunriseSunsetDemo.cs
|
||||
uploadId: 612339
|
||||
Reference in New Issue
Block a user