Example #1
0
    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>();
    }
Example #2
0
 public void Setup(GameObject waitingStaffPrefab, Sprite previewSprite, WaitingStaffData waitingStaffData)
 {
     this.waitingStaffPrefab = waitingStaffPrefab;
     previewImage.sprite     = previewSprite;
     waitingStaffPrice       = waitingStaffData.buyPrice;
 }