Obtain Usable Information
Posted: Mon Jan 31, 2022 10:40 pm
Hello,
I would like to add a new OnSelectedUsableI() event to my selector. I would like to get the gameobject that is currently selected and store it into a gameobject.
Is there a method already created that I can use to reference the usable object that is currently selected or will I just need to create new OnTriggerEnter/Exit methods?
I would like to add a new OnSelectedUsableI() event to my selector. I would like to get the gameobject that is currently selected and store it into a gameobject.
Is there a method already created that I can use to reference the usable object that is currently selected or will I just need to create new OnTriggerEnter/Exit methods?
Code: Select all
gameobject usableObject;
OnSelectedUsable()
{
usableObject = This is where I would need a method that references the usable that is selected.
}