using System.Collections; using System.Collections.Generic; using BITKit; using BITKit.Entities; using BITKit.Selection; using NodeCanvas.DialogueTrees; using UnityEngine; namespace BITFALL.Industry { public class PlayerIndustryOperator : EntityBehavior,IDialogueActor { [Inject] private ISelector _selector; public override void OnStart() { base.OnStart(); _selector.OnActive += OnActive; } private void OnActive(ISelectable obj) { DialogueTree .RequestMultipleChoices( new MultipleChoiceRequestInfo(this, new() { { new Statement("捡起物品"), 1 }, { new Statement("取消"), 0 }, }, 0, OnAction)); } private void OnAction(int obj) { } public Texture2D portrait { get; set; } public Sprite portraitSprite { get; set; } public Color dialogueColor { get; set; } public Vector3 dialoguePosition => transform.position; } }