Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            DialogPhrase phrase = (DialogPhrase)target;

            base.OnInspectorGUI();
            eUtils.DrawEffectsSelector(phrase.effects, phrase.transform, ref showEffects);
        }
Ejemplo n.º 2
0
        private void StartPhrase(DialogPhrase phrase)
        {
            InterfaceManager interfaceManager = InterfaceManager.GetInstantiate();

            interfaceManager.dialogPanel.gameObject.SetActive(true);
            foreach (Effect effect in phrase.effects)
            {
                effect.Realize(curDialog, curDialog.teamOwner);
            }
            if (phrase.type == PhraseType.DIALOG_PHRASE)
            {
                interfaceManager.dialogPanel.Set(phrase, curDialog.owner, curDialog.questOwner);
            }
            else if (phrase.type == PhraseType.REPORT)
            {
                interfaceManager.dialogPanel.SetReport(phrase, curDialog.teamOwner.reportNotes, curDialog.teamOwner, curDialog.questOwner);
            }
        }