using System; using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.AI; using UnityEngine.UI; // ReSharper disable once CheckNamespace namespace BlueWaterProject { public class TycoonNpc : MonoBehaviour { public NpcStateMachine StateMachine { get; set; } public NavMeshAgent Agent { get; set; } public Transform VisaualLook { get; set; } public TycoonMapInfo MapInfo { get; set; } [Title("FindTableState")] public bool DoSeat { get; set; } public Seat AssignedSeat { get; set; } [Title("FoodOrderState")] public Image BarkImg { get; set; } public Image BarkFillImg { get; set; } public Image FoodImg { get; set; } public Transform EmojiTransform { get; set; } public bool IsGetFood { get; set; } private void Awake() { Agent = GetComponent(); Agent.updateRotation = false; MapInfo = GameObject.Find("MapInfo").GetComponent(); BarkImg = transform.Find("Canvas/BarkImg").GetComponent(); BarkFillImg = transform.Find("Canvas/BarkFillImg").GetComponent(); FoodImg = transform.Find("Canvas/FoodImg").GetComponent(); EmojiTransform = transform.Find("Emoji"); } private void Start() { StateMachine = gameObject.AddComponent(); var findTableState = new FindTableState(this); StateMachine.ChangeState(findTableState); } } }