Esempio n. 1
0
    void TaskOnClick()
    {
        Debug.Log(shopID);
        if (ShopFormManager.CurrentID == shopID)
        {
            Debug.Log("Same Shop Opened");
        }
        else
        {
            ShopFormManager.ResetSkus();
        }

        UIManager.instance.ActivateScreen(3); // Shop   inputScreen is at 3
        ShopFormManager.CurrentID = shopID;
        ShopFormManager.instance.UpdateForm();

        for (int i = 0; i < ShopDataCreator.dayData.shops.Count; i++)
        {
            if (shopID == ShopDataCreator.dayData.shops[i].id)
            {
                if (ShopDataCreator.dayData.shops[i].checkIn.Length < 2)
                {
                    ShopDataCreator.dayData.shops[i].checkIn = DateTime.UtcNow.ToString();
                }
            }
        }
    }
Esempio n. 2
0
 public void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }