public void AssignInteractible(DD_Lever addingObject) { mInteractibleObjects.Add(addingObject); mInteractible = mInteractibleObjects[0]; //Currently only interacts with the first objects in the list //Will soon interact with the closest object return; }
public void RemoveInteractible(DD_Lever removingObject) { mInteractibleObjects.Remove(removingObject); //removes first instance of matching type return; }
void Start() { mInteractible = FindObjectOfType <DD_Lever>(); mInteractibleObjects = null; //start with empty list mIsInteracting = false; //no interaction at game start }