예제 #1
0
    private void DrawHuman()
    {
        GameObject body = Instantiate(PrefabLoader.GetHumanBody(human.Gender, human.BodyType), Vector2.zero,
                                      Quaternion.identity) as GameObject;
        GameObject hair = Instantiate(PrefabLoader.GetHumanHair(human.Gender, human.HairType), Vector2.zero,
                                      Quaternion.identity) as GameObject;

        body.transform.SetParent(transform, false);
        hair.transform.SetParent(transform, false);
    }