I have a object with this script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Targets : MonoBehaviour {
public GameController gamecontroller;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void enableInteraction(){
gamecontroller.interaction = true;
}
}
And I have included a Event Trigger component in this same object that I intend to use to call the enableInteraction() but its not showing the in the list options of this component. How can I call this function using the Event Trigger component?
Thanks in advance.