Character customization class update

The events that drive character customization are attached to the Base prefab, which has the CharacterCustomization.cs script as a component. The CharacterCustomization.cs script is as follows:

using System;using UnityEngine;using UnityEngine.UI;namespace com.noorcon.rpg2e{  public class BarbarianCharacterCustomization : MonoBehaviour  {    public GameObject PLAYER_CHARACTER;    public PlayerCharacter PlayerCharacterData;    public Material[] PLAYER_SKIN;...    // Use this for initialization    void Start()    {      PlayerCharacterData = PLAYER_CHARACTER.GetComponent<PlayerAgent>().playerCharacterData;    }    public bool ROTATE_MODEL = false;    // Update is called once per frame    void Update()    {      if (Input.GetKeyUp(KeyCode.R))      { ROTATE_MODEL ...

Get Building an RPG with Unity 2018 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.