17 lines
451 B
C#
17 lines
451 B
C#
using System.Collections.Frozen;
|
|
using System.Collections.Generic;
|
|
using AYellowpaper.SerializedCollections;
|
|
using UnityEngine;
|
|
|
|
namespace Net.Project.B.AI
|
|
{
|
|
public class ScriptableNpcSpawn : ScriptableObject,IScriptableNpcSpawn
|
|
{
|
|
[SerializeField] private SerializedDictionary<Transform, int> npcWeights;
|
|
|
|
public IReadOnlyDictionary<string, int> NpcWeights => npcWeights.ToFrozenDictionary(x=>x.Key.name,x=>x.Value);
|
|
}
|
|
|
|
}
|
|
|