public void ShowMonologue(params string[] texts) { selectTextUI = monolougeObject; textValues = texts; OpenSetting(); }
public void ShowSystemText(params string[] texts) { selectTextUI = systemTextObject; textValues = texts; OpenSetting(); }
public void ShowInvenstigate(params string[] texts) { selectTextUI = invenstigateObject; textValues = texts; OpenSetting(); }
public void ShowNPCDialog(string[] texts, int[] index, params GameObject[] targetObjects) { selectTextUI = npcDialogObject; textValues = texts; Func <GameObject, Vector3> setDialog = (GameObject obj) => { Vector3 position = obj.transform.position; if (obj.Equals(targetObjects[targetObjects.Length - 1])) { position.x += playerDialogX; position.y += playerDialogY; } else { position.x += 3; position.y += 1; } return(position); }; nextEvent = () => { if (this.index >= index.Length) { return; } if (index[this.index].Equals(-1)) { selectTextUI.gameObject.transform.position = setDialog(targetObjects[targetObjects.Length - 1]); } else { selectTextUI.gameObject.transform.position = setDialog(targetObjects[index[this.index]]); } }; nextEvent(); OpenSetting(); }