/** * Event: Focus character */ public void OnFocusCharacter(Character character) { if(character.conversation.Value != null) { this.SetHeading(character.title); this.SetBody("Talk"); this.SetVisible(true); } }
/** * Looking at a Character */ public virtual void Focus(Character character) { character.OnFocused(); this.OnFocusCharacter(character); this.prevFocus = character; if(InputManager.GetButtonDown("Interact")) { this.Interact(character); } }
/** * Interact with Character */ public virtual void Interact(Character character) { character.OnInteract(this); }