code fixes after packages removed

This commit is contained in:
Aggtaa 2026-01-20 11:23:46 +03:00
parent 3d85213ade
commit a9fb1864a5
3 changed files with 2 additions and 9 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;
}