private void detachFromCurrentExhibit() { // make it selectable again if(currentExhibit) { currentExhibit.GetComponent<MusSelectableObject>().IsSelectable = true; currentExhibit.stopAnim(); currentExhibit = null; } }
private void attachToExhibit(MusExhibit exh) { currentExhibit = exh; nextExhibit = null; Debug.Log ("reached " + currentExhibit); //exh.GetComponent<MusSelectableObject>().IsSelectable = true; currentExhibit.startAnim (); }
public void walkToExhibit(MusExhibit exh) { // if player isn't attached to this exhibit.. if(currentExhibit != exh) { Debug.Log ("Player walking to " + exh); detachFromCurrentExhibit(); nextExhibit = exh; } else { Debug.Log ("Player is already at " + exh); } }