maint: added livewatch asset
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ingvar.LiveWatch.TowerDefenceDemo
|
||||
{
|
||||
[DefaultExecutionOrder(-99999)]
|
||||
public class TD_WatchManager : MonoBehaviour
|
||||
{
|
||||
private void Awake()
|
||||
{
|
||||
Watch.DestroyAll();
|
||||
|
||||
Watch.GetOrAdd("Frame", () => Time.frameCount)
|
||||
.SetAlwaysCollapsable()
|
||||
.SetSortOrder(TD_WatchSortOrder.Frame);
|
||||
|
||||
Watch.GetOrAdd("FPS", () => (int)(1f / Time.unscaledDeltaTime))
|
||||
.SetAlwaysCollapsable()
|
||||
.SetSortOrder(TD_WatchSortOrder.FPS);
|
||||
|
||||
Watch.GetOrAdd("TimeScale", () => Time.timeScale)
|
||||
.SetAlwaysCollapsable()
|
||||
.SetSortOrder(TD_WatchSortOrder.TimeScale);
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
Watch.UpdateAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5e061c88a9b4dc45ac0db51a7cd643d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 324001
|
||||
packageName: LiveWatch Lite | Debug with full history of changes
|
||||
packageVersion: 1.0.1
|
||||
assetPath: Assets/LiveWatchLite/TowerDefenceDemo/Watches/TD_WatchManager.cs
|
||||
uploadId: 770587
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace Ingvar.LiveWatch.TowerDefenceDemo
|
||||
{
|
||||
// You can expose sort order values to separate const variables for more convenient usage
|
||||
public static class TD_WatchSortOrder
|
||||
{
|
||||
public const int Frame = -1002;
|
||||
public const int FPS = -1001;
|
||||
public const int TimeScale = -1000;
|
||||
public const int State = -100;
|
||||
public const int Health = -90;
|
||||
public const int Energy = -80;
|
||||
public const int TowerBuildLog = -70;
|
||||
public const int MobLog = -60;
|
||||
// Variables which order is not set would be here (between 0 and 1 exclusive)
|
||||
public const int LevelConfig = 1000;
|
||||
public const int EconomyConfig = 1001;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 140631d8f70a470d9eac52b3467c2475
|
||||
timeCreated: 1726416316
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 324001
|
||||
packageName: LiveWatch Lite | Debug with full history of changes
|
||||
packageVersion: 1.0.1
|
||||
assetPath: Assets/LiveWatchLite/TowerDefenceDemo/Watches/TD_WatchSortOrder.cs
|
||||
uploadId: 770587
|
||||
Reference in New Issue
Block a user