public override bool LookAt()
{
UWHUD.instance.MessageScroll.Add(StringController.instance.TextureDescription(TextureIndex));
if ((TextureIndex == 142) && ((_RES == GAME_UW1) || (_RES == GAME_UWDEMO)))
{ //This is a window into the abyss.
UWHUD.instance.CutScenesSmall.anim.SetAnimation = "VolcanoWindow_" + GameWorldController.instance.LevelNo;
UWHUD.instance.CutScenesSmall.anim.looping = true;
}
if (objInt().link != 0)
{
GameObject triggerObj = ObjectLoader.getGameObjectAt(objInt().link);
if (triggerObj != null)
{
ObjectInteraction objIntTrigger = triggerObj.GetComponent <ObjectInteraction>();
if ((objIntTrigger.GetItemType() == ObjectInteraction.A_LOOK_TRIGGER)
||
(objIntTrigger.GetItemType() == ObjectInteraction.A_USE_TRIGGER)
)
{
objIntTrigger.GetComponent <trigger_base> ().Activate(this.gameObject);
return(true);
}
}
}
return(true);
}