void Start() { sentences = new Queue <string> (); currentGuy = Instantiate(tutorialGuy, spawnLocation.transform); currentGuy.GetComponent <CharacterCustomizationScript>().UnsetAllClothing(); currentGuy.GetComponent <CharacterCustomizationScript>().SetClothing(1); currentGuy.GetComponent <CharacterCustomizationScript>().SetAccessoriesByPreset(GameMaster.Instance.CustomizationManager.Character.AccessoryPresets[0]); currentGuy.GetComponent <CharacterCustomizationScript>().UpdateBodyColor(GameMaster.Instance.CustomizationManager.Character.SkinColors[3]); charaA = currentGuy.GetComponent <CharacterAnimationScript> (); canvas.SetActive(false); }
//Awake() is like Start() but is called regardless of whether the script is enabled or not. private void Awake() { playerRigidbody = GetComponent <Rigidbody>(); animationScript = GetComponent <CharacterAnimationScript>(); }