Ejemplo n.º 1
0
        public void StartSelectiveConversation(ConversationController convCtrl)
        {
            string conversationName = PlayerSpriteRenderer.sprite.name;

            if (convCtrl.FindConversationByName(conversationName) == null)
            {
                conversationName = "Default";
            }
            convCtrl.StartConversation(conversationName);
            // if no portrait is set, overwrite the portrait and name with the current character
            if (!convCtrl.uiDialogInstance.portrait.sprite)
            {
                convCtrl.uiDialogInstance.portrait.sprite = PlayerSpriteRenderer.sprite;
                convCtrl.uiDialogInstance.portrait.gameObject.SetActive(true);
                convCtrl.uiDialogInstance.dialogName.text = PlayerSpriteRenderer.sprite.name;
            }
        }
Ejemplo n.º 2
0
 private void Reset()
 {
     conversationController = GetComponentInChildren <ConversationController>();
     ValidateData();
 }