Пример #1
0
 private void detachFromCurrentExhibit()
 {
     // make it selectable again
     if(currentExhibit) {
         currentExhibit.GetComponent<MusSelectableObject>().IsSelectable = true;
         currentExhibit.stopAnim();
         currentExhibit = null;
     }
 }
Пример #2
0
    private void attachToExhibit(MusExhibit exh)
    {
        currentExhibit = exh;
        nextExhibit = null;

        Debug.Log ("reached " + currentExhibit);
        //exh.GetComponent<MusSelectableObject>().IsSelectable = true;

        currentExhibit.startAnim ();
    }
Пример #3
0
    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);

        }
    }