19 lines
450 B
C#
19 lines
450 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CharecterJsonLoader : MonoBehaviour
|
|
{
|
|
private SpriteRenderer _renderer;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
_renderer = GetComponent<SpriteRenderer>();
|
|
|
|
var charecter = JsonManager.LoadChar();
|
|
|
|
_renderer.color = new Color(charecter.x / 255, charecter.y / 255, charecter.z / 255);
|
|
}
|
|
}
|