예제 #1
0
    // public string flag_file_name;
    // Start is called before the first frame update
    void Start()
    {
        // changing state color to more pastel hue
        intendant = GameObject.Find("Intendant").GetComponent <intendant>();
        float h, s, v;

        Color.RGBToHSV(state_color, out h, out s, out v);
        s           = 0.5f;
        v           = 1;
        state_color = Color.HSVToRGB(h, s, v);

        intendant.AddState(gameObject);


        //Debug.Log(icon_file);
        flag = Resources.Load(icon_file) as Sprite;
        //Debug.Log(flag);
        UpdateEconomicInfo();
    }