// Use this for initialization void Start () { if (system == MessageSystems.Dsystem) dsystem = GameObject.FindGameObjectWithTag("Scene").GetComponent<DialogueSystem>(); if (system == MessageSystems.Nsystem) nsystem = GameObject.FindGameObjectWithTag("Scene").GetComponent<NotesSystem>(); }
public void Interact() { if (autoDisplay) { NotesSystem.Display(note); } }
private void Awake() { animator = GetComponentInChildren<SimpleAnimator>(); rbody2D = GetComponent<Rigidbody2D>(); nsystem = GameObject.FindGameObjectWithTag("Scene").GetComponent<NotesSystem>(); dsystem = GameObject.FindGameObjectWithTag("Scene").GetComponent<DialogueSystem>(); }