Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        __is_talkable    = false;
        __dialog_ongoing = false;
        __dialog         = DialogBank.load(dialog_id);

        __audio_source = GetComponent <AudioSource>();
        __talk_bubble  = GetComponentInChildren <TalkBubble>();

        __animator = GetComponentInChildren <Animator>();
    }
Example #2
0
    public void init(int iDialogID)
    {
        NPCDialogDico loadDico = null;

        DialogBank.loadDicoFromID(iDialogID, out loadDico);
        npcDialogDico = loadDico;

        if (null == npcDialogDico)
        {
            Debug.Log("wtf ? " + iDialogID);
        }
        else
        {
            activeDCell = npcDialogDico.startingCell;
        }
    }
Example #3
0
 void Start()
 {
     npc     = GetComponent <NPC> ();
     player  = GameObject.FindGameObjectWithTag("Player").transform;
     message = "Hey, " + DialogBank.IceBreaker(WeatherManager.instance.weather);
 }