// Use this for initialization void Start() { //First character selected name = characterName.GetComponent <Text>(); popUp = this.GetComponent <PopUpWindow>(); characterSeries = "SF"; artwork.GetComponent <SpriteRenderer>().sprite = Resources.Load <Sprite>("Textures_and_Sprites/Menus/Interface/CharacterSelectionMenu/CharacterProfile/SF/Ryu/RyuPortraitSelection"); series.GetComponent <Image>().sprite = Resources.Load <Sprite>("Textures_and_Sprites/Menus/Interface/CharacterSelectionMenu/CharacterProfile/SF/SF_logo"); loadScene = EventSystem.current.GetComponent <LoadSceneonClick>(); GameObject.Find("Music").GetComponent <MusicPlayer>().PlayMusic("Selection"); ////Plays character selection music soundEffect = GameObject.Find("SoundEffects").GetComponent <SoundEffectPlayer>(); }
// Use this for initialization void Start() { loadScene = GetComponent <LoadSceneonClick>(); soundEffect = GameObject.Find("SoundEffects").GetComponent <SoundEffectPlayer>(); }