Exemplo n.º 1
0
 // 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);
 }
Exemplo n.º 2
0
 private void Awake()
 {
     if (Get != null)
     {
         Destroy(this.gameObject);
         return;
     }
     Get = this;
 }
Exemplo n.º 3
0
    private void Awake()
    {
        if (TBM == null)
        {
            TBM = this;
        }
        else if (TBM != this)
        {
            Destroy(this);
        }

        Controls = new MasterInputSystem();
        Controls.Player.Interact.performed += Context => interactionPressed = true;
    }