// 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>(); }
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; } }
void Start() { npc = GetComponent <NPC> (); player = GameObject.FindGameObjectWithTag("Player").transform; message = "Hey, " + DialogBank.IceBreaker(WeatherManager.instance.weather); }