private void Awake() { if (instance != null) { Destroy(this.gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); } portraitDictionary = new Dictionary <Chunk.speakerName, Image>(); for (int i = 0; i < SpeakerNames.Length; i++) { portraitDictionary.Add(SpeakerNames[i], portraitArray[i]); } }
public DUCommand_Normal(PortraitInfo _portInfo, string _text) { portInfo = _portInfo; text = _text; }