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(); var charecter = JsonManager.LoadChar(); _renderer.color = new Color(charecter.x / 255, charecter.y / 255, charecter.z / 255); } }