Example #1
0
 public void ShowShop(IShopCustomer _customer)
 {
     customer = _customer;
     foreach (var item in buttons)
     {
         item.gameObject.SetActive(true);
     }
 }
Example #2
0
    private void OnTriggerExit(Collider other)
    {
        IShopCustomer shopCustomer = other.GetComponent <IShopCustomer>();

        if (shopCustomer != null)
        {
            shop.Hide();
        }
    }
Example #3
0
    private void OnTriggerEnter2D(Collider2D collider)
    {
        IShopCustomer shopCustomer = collider.GetComponent <IShopCustomer>();

        if (shopCustomer != null)
        {
            uiShop.Show(shopCustomer);
        }
    }
Example #4
0
    private void OnTriggerExit2D(Collider2D col)
    {
        IShopCustomer shopCustomer = col.GetComponent <IShopCustomer>();

        if (shopCustomer != null)
        {
            uiShop.Hide();
            move = true;
        }
    }
Example #5
0
    private void OnTriggerEnter(Collider other)
    {
        IShopCustomer shopCustomer = other.GetComponent <IShopCustomer>();

        if (shopCustomer != null)
        {
            nextDoor.OpenDoor();
            shop.Show(shopCustomer);
        }
    }
Example #6
0
 public void Show(IShopCustomer shopCustomer)
 {
     this.shopCustomer = shopCustomer;
     gameObject.SetActive(true);
 }
Example #7
0
 public void Show(IShopCustomer shopCustomer)
 {
     this.shopCustomer = shopCustomer;
     gameObject.SetActive(true);
     Game.Instance.InShopMenu = true;
 }