Ejemplo n.º 1
0
    private void RenderAvatar()
    {
        GameObject avatar = Instantiate(_progress.GetCurrentSkin());

        avatar.tag                     = "Untagged";
        avatar.layer                   = 10;
        avatar.transform.parent        = _uiCharacterHolder;
        avatar.transform.localPosition = Vector3.zero;
        avatar.transform.localRotation = Quaternion.identity;

        foreach (Transform child in avatar.transform)
        {
            child.gameObject.layer = 10;
        }
    }