private void Awake() { string objectID = gameObject.name.Replace("(Clone)", ""); waitingStaffData = Database.Instance.Select <WaitingStaffData>("WaitingStaffDataTable").Select(objectID); behaviorTree = GetComponent <BehaviorTree>(); animator = GetComponent <Animator>(); astarAI = GetComponent <IAstarAI>(); }
public void Setup(GameObject waitingStaffPrefab, Sprite previewSprite, WaitingStaffData waitingStaffData) { this.waitingStaffPrefab = waitingStaffPrefab; previewImage.sprite = previewSprite; waitingStaffPrice = waitingStaffData.buyPrice; }