//toEnter must have an EnterScript on it!
    public EnterAction(GameObject willEnter, GameObject toEnter, string text)
    {
        this.willEnter       = willEnter;
        this.toEnter         = toEnter;
        this.collisionScript = toEnter.GetComponent <EnterScript> ();
        //this.collisionScript.setWillEnter(willEnter);
        this.character = willEnter.GetComponent <CharacterOurs> ();

        interactionManager = GameObject.Find("InteractionManager");
        guiHandler         = interactionManager.GetComponent <GUIHandler> ();
        this.text          = text;
    }
示例#2
0
 public DoorList(EnterScript doorTemp)
 {
     door = doorTemp;
 }