Пример #1
0
    public void Init()
    {
        Ruined = false;

        System.Array clothValues = System.Enum.GetValues(typeof(EClothesStyle));
        ClothesStyle = (EClothesStyle)clothValues.GetValue(UnityEngine.Random.Range(0, clothValues.Length));

        BodyRenderer.sprite = BodySprites[(int)ClothesStyle];

        UpdateFace();
    }
    public void Init()
    {
        Ruined = false;

        System.Array clothValues = System.Enum.GetValues (typeof(EClothesStyle));
        ClothesStyle = (EClothesStyle)clothValues.GetValue (UnityEngine.Random.Range (0, clothValues.Length));

        BodyRenderer.sprite = BodySprites[(int)ClothesStyle];

        UpdateFace();
    }