Compare commits

...

2 Commits

Author SHA1 Message Date
Aggtaa a9fb1864a5 code fixes after packages removed 2026-01-20 11:23:46 +03:00
Aggtaa 3d85213ade unity package cleanup 2026-01-20 10:29:19 +03:00
5 changed files with 5 additions and 176 deletions

View File

@ -1,11 +1,9 @@
using System;
using Unity.VisualScripting;
using UnityEngine;
[Serializable]
public abstract class Resource
{
[Inspectable]
public abstract string Name { get; }
public abstract string SourceLabel { get; }

View File

@ -1,5 +1,4 @@
using System;
using Unity.VisualScripting;
using UnityEngine;
[RequireComponent(typeof(ResourceSource))]
@ -29,7 +28,7 @@ public class ResourceGenerator : MonoBehaviour
// PlayerPrefs.Save();
lastTime = long.Parse(
PlayerPrefs.GetString(GetLastTimePrefName(), GetCurrentTime().ToSafeString())
PlayerPrefs.GetString(GetLastTimePrefName(), GetCurrentTime().ToString())
);
GenerateToNow(false);
@ -54,7 +53,7 @@ public class ResourceGenerator : MonoBehaviour
{
GenerateToNow(true);
PlayerPrefs.SetString(GetLastTimePrefName(), lastTime.ToSafeString());
PlayerPrefs.SetString(GetLastTimePrefName(), lastTime.ToString());
}
private void GenerateToNow(bool online)

View File

@ -1,12 +1,8 @@
using System;
using Unity.VisualScripting;
using UnityEngine;
public class ResourceSource : MonoBehaviour
{
[field: SerializeField]
public string Label { get; private set; }
[SerializeReference]
public Resource Resource;
}

View File

@ -2,26 +2,16 @@
"dependencies": {
"com.unity.2d.animation": "13.0.2",
"com.unity.2d.aseprite": "3.0.1",
"com.unity.2d.enhancers": "1.0.0",
"com.unity.2d.psdimporter": "12.0.1",
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "13.0.0",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.2d.tilemap.extras": "6.0.1",
"com.unity.2d.tooling": "1.0.0",
"com.unity.ai.assistant": "1.5.0-pre.2",
"com.unity.ai.generators": "1.5.0-pre.2",
"com.unity.ai.inference": "2.4.1",
"com.unity.collab-proxy": "2.10.2",
"com.unity.ide.rider": "3.0.38",
"com.unity.ide.visualstudio": "2.0.25",
"com.unity.inputsystem": "1.17.0",
"com.unity.multiplayer.center": "1.0.1",
"com.unity.render-pipelines.universal": "17.3.0",
"com.unity.test-framework": "1.6.0",
"com.unity.timeline": "1.8.9",
"com.unity.ugui": "2.0.0",
"com.unity.visualscripting": "1.9.9",
"com.unity.modules.accessibility": "1.0.0",
"com.unity.modules.adaptiveperformance": "1.0.0",
"com.unity.modules.ai": "1.0.0",

View File

@ -41,29 +41,6 @@
},
"url": "https://packages.unity.com"
},
"com.unity.2d.enhancers": {
"version": "1.0.0",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "11.0.1",
"com.unity.ai.generators": "1.0.0-pre.12",
"com.unity.settings-manager": "2.0.1",
"com.unity.modules.uielements": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.psdimporter": {
"version": "12.0.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "12.0.1",
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.tilemap": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.sprite": {
"version": "1.0.0",
"depth": 0,
@ -111,57 +88,9 @@
},
"url": "https://packages.unity.com"
},
"com.unity.ai.assistant": {
"version": "1.5.0-pre.2",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ai.generators": "1.5.0-pre.2",
"com.unity.serialization": "3.1.1",
"com.unity.modules.uielements": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.modules.unitywebrequest": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.ai.generators": {
"version": "1.5.0-pre.2",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.ai.toolkit": "1.5.0-pre.2",
"com.unity.mathematics": "1.3.2",
"com.unity.cloud.gltfast": "6.14.1",
"com.unity.nuget.newtonsoft-json": "3.2.1"
},
"url": "https://packages.unity.com"
},
"com.unity.ai.inference": {
"version": "2.4.1",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.8.17",
"com.unity.dt.app-ui": "1.3.1",
"com.unity.collections": "2.4.3",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.modules.imageconversion": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.ai.toolkit": {
"version": "1.5.0-pre.2",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.nuget.newtonsoft-json": "3.2.1"
},
"url": "https://packages.unity.com"
},
"com.unity.burst": {
"version": "1.8.26",
"depth": 1,
"depth": 2,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1",
@ -169,26 +98,6 @@
},
"url": "https://packages.unity.com"
},
"com.unity.cloud.gltfast": {
"version": "6.14.1",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.8.24",
"com.unity.collections": "1.2.4",
"com.unity.mathematics": "1.2.6",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": {
"version": "2.10.2",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.collections": {
"version": "2.6.2",
"depth": 1,
@ -202,33 +111,12 @@
},
"url": "https://packages.unity.com"
},
"com.unity.dt.app-ui": {
"version": "2.1.1",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.screencapture": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.ext.nunit": {
"version": "2.0.5",
"depth": 1,
"depth": 2,
"source": "builtin",
"dependencies": {}
},
"com.unity.ide.rider": {
"version": "3.0.38",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ext.nunit": "1.0.6"
},
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.25",
"depth": 0,
@ -254,14 +142,6 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.multiplayer.center": {
"version": "1.0.1",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.uielements": "1.0.0"
}
},
"com.unity.nuget.mono-cecil": {
"version": "1.11.6",
"depth": 2,
@ -269,13 +149,6 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.nuget.newtonsoft-json": {
"version": "3.2.2",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.render-pipelines.core": {
"version": "17.3.0",
"depth": 1,
@ -315,23 +188,6 @@
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.serialization": {
"version": "3.1.3",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.7.2",
"com.unity.collections": "2.4.2"
},
"url": "https://packages.unity.com"
},
"com.unity.settings-manager": {
"version": "2.1.1",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.shadergraph": {
"version": "17.3.0",
"depth": 1,
@ -343,7 +199,7 @@
},
"com.unity.test-framework": {
"version": "1.6.0",
"depth": 0,
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.ext.nunit": "2.0.3",
@ -382,16 +238,6 @@
"com.unity.modules.imgui": "1.0.0"
}
},
"com.unity.visualscripting": {
"version": "1.9.9",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ugui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.modules.accessibility": {
"version": "1.0.0",
"depth": 0,