code fixes after packages removed
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user