string[] descriptionSheet = { "Whatever I put in here", "Other stuff in there"};
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DescriptionOfCard : MonoBehaviour { public Text currentDescription; public Text description; public int frame = 0; string[] descriptionSheet = { "The box is very large and brown." + "It cannot be crushed.", "I literally have over 100 other descriptions" }; void Start() { } public void ChangeDescription() { description.text = descriptionSheet[0 + frame]; currentDescription.text = description.text; frame = frame + 1; } }
string[] descriptionSheet = { "The box is very large and brown.\n" + "It cannot be crushed.", "I literally have over 100 other descriptions" };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)