Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ActionSay : ActionSpeech
- {
- public ActionSay()
- {
- this.isDisplayed = true;
- category = ActionCategory.Custom;
- title = "Say";
- description = "Say by Manifest.CharacterType";
- }
- public Manifest.CharacterType manifestSpeaker;
- public string words;
- #if UNITY_EDITOR
- public override void ShowGUI(List<ActionParameter> parameters)
- {
- manifestSpeaker = (Manifest.CharacterType)EditorGUILayout.EnumPopup("Speaker:", manifestSpeaker);
- EditorGUILayout.BeginHorizontal();
- EditorGUILayout.LabelField("Line text:", GUILayout.Width(65f));
- EditorStyles.textField.wordWrap = true;
- words = EditorGUILayout.TextArea(words, GUILayout.MaxWidth(400f));
- EditorGUILayout.EndHorizontal();
- AfterRunningOption();
- }
- #endif
- override public void AssignValues(List<ActionParameter> parameters)
- {
- speaker = CharactersManager.I.FindCharacterByType(manifestSpeaker);
- base.AssignValues(parameters);
- }
- override public void AssignParentList(ActionList actionList)
- {
- base.AssignParentList(actionList);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement