public DialogSet(string name, DialogSet parent = null, Dictionary <string, float> variables = null, Dictionary <string, DialogBase> states = null, Dictionary <string, string> transitions = null, string startStateName = "1", EventDelegate handleEvent = null, SkipDelegate onSkipped = null, StartDelegate onStarted = null, ChildSkipDelegate onChildSkipped = null ) : base(name, parent, variables, handleEvent, onSkipped, onStarted) { this._states = states ?? new Dictionary <string, DialogBase>(); foreach (DialogBase b in _states.Values) { b.Parent = this; } this._transitions = transitions ?? GetDefaultTransitions(_states.Count); this.startStateName = startStateName; this.HandleEvent = handleEvent ?? defaultHandleEvent; this.OnStarted = onStarted ?? defaultOnStarted; this.OnSkipped = onSkipped ?? defaultOnSkipped; this.OnChildSkipped = onChildSkipped ?? defaultOnChildSkipped; }
public IEnumerator ShowDialog() { panel.SetActive(true); _name.ShowName(); Skiped = new SkipDelegate(_text.Skip); yield return(_text.ShowText(0.06f, 1.5f)); panel.SetActive(false); InvokeEventFinished(); yield break; }
static CallbackHandler() { readCallback = new ReadDelegate(read); writeCallback = new WriteDelegate(write); skipCallback = new SkipDelegate(skip); seekCallback = new SeekDelegate(seek); tellCallback = new TellDelegate(tell); eofCallback = new EofDelegate(eof); closeCallback = new CloseDelegate(close); deletedCallback = new DeletedDelegate(deleted); }
public DialogBase(string name, DialogSet parent = null, Dictionary <string, float> variables = null, EventDelegate handleEvent = null, SkipDelegate onSkipped = null, StartDelegate onStarted = null ) { this._name = name; this._parent = parent; this._variables = variables ?? new Dictionary <string, float>(); this.HandleEvent = handleEvent ?? defaultHandleEvent; this.OnSkipped = onSkipped ?? defaultOnSkipped; this.OnStarted = onStarted ?? defaultOnStarted; DeclareVariable("#starttime", 0f); }
public DialogState(string name, string text, Dictionary <string, UIProp <object> > uiProps = null, Dictionary <string, float> variables = null, List <DialogChoice> choices = null, DialogSet parent = null, ChoiceDelegate onChoice = null, EventDelegate handleEvent = null, SkipDelegate onSkipped = null, StartDelegate onStarted = null) : base(name, parent, variables, handleEvent, onSkipped, onStarted) { this.text = text; this.uiProps = uiProps ?? new Dictionary <string, UIProp <object> >(); this.choices = choices ?? new List <DialogChoice>(); this.OnChoice = onChoice ?? defaultOnChoice; this.HandleEvent = handleEvent ?? defaultHandleEvent; this.OnStarted = onStarted ?? defaultOnStarted; this.OnSkipped = onSkipped ?? defaultOnSkipped; _active = false; }
private static extern IntPtr OgreManagedStream_Create(String name, IntPtr size, AccessMode accessMode, ReadDelegate read, WriteDelegate write, SkipDelegate skip, SeekDelegate seek, TellDelegate tell, EofDelegate eof, CloseDelegate close, DeletedDelegate deleted #if FULL_AOT_COMPILE , IntPtr instanceHandle #endif );