예제 #1
0
 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;
 }
예제 #2
0
 public void RemoveInteractible(DD_Lever removingObject)
 {
     mInteractibleObjects.Remove(removingObject);
     //removes first instance of matching type
     return;
 }
예제 #3
0
 void Start()
 {
     mInteractible        = FindObjectOfType <DD_Lever>();
     mInteractibleObjects = null;  //start with empty list
     mIsInteracting       = false; //no interaction at game start
 }