public void UpdateInformation() { CharacterSelect characterSelect = CharacterSelect.Instance; image.sprite = characterSelect.GetCurrentCharacterImage; animator.runtimeAnimatorController = characterSelect.GetCurrentCharacterShowcaseAnimatorController; characterNameText.text = characterSelect.GetCurrentCharacterName(); characterFamilyText.text = characterSelect.GetCurrentCharacterFamily(); }
private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(this.gameObject); } //TODO: Remove this and have character save on file. ChangeCurrentCharacter(PlayableCharacterEnum.Tracy); }