Beispiel #1
0
    void OnTriggerEnter2D(Collider2D otherCol)
    {
        Interactable i = otherCol.GetComponent <Interactable>();

        if (i != null)
        {
            currentInteractable = i;
            i.AddPrompt();
        }
    }
Beispiel #2
0
 //lets an interactable know to put an arrow above it
 public void AddPrompt(Interactable i)
 {
     i.AddPrompt();
 }