// Start is called before the first frame update void Start() { textBubbleManager = GetComponent <TextBubbleManager>(); Invoke("DialogueLine1", 3); Invoke("DialogueLine2", 3 + 5); Invoke("DialogueLine3", 3 + 5 + 7); }
private void Awake() { if (Get != null) { Destroy(this.gameObject); return; } Get = this; }
private void Awake() { if (TBM == null) { TBM = this; } else if (TBM != this) { Destroy(this); } Controls = new MasterInputSystem(); Controls.Player.Interact.performed += Context => interactionPressed = true; }