char parse to sprite

This commit is contained in:
j.mei7
2022-02-19 00:54:32 +01:00
parent 439eb16d3b
commit 059b62ed8a
35 changed files with 3596 additions and 81 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharSpriteManager : MonoBehaviour
{
[SerializeField]
List<CharSprite> charSprites = new List<CharSprite>();
private void Start()
{
LoadIntoList();
}
void LoadIntoList()
{
CharSprite[] loadedRes = Resources.FindObjectsOfTypeAll<CharSprite>();
foreach (CharSprite sprite in loadedRes)
{
Debug.Log(sprite.name);
charSprites.Add(sprite);
}
}
}