// Use this for initialization void Start() { blockCustomEntryImg = GameObject.Find("Img_BlockCustomEntry"); foodSelectionScript = gameObject.GetComponent <FoodSelection>(); pushNotificationScript = gameObject.GetComponent <PushNotification>(); shopingListScript = gameObject.GetComponent <ShopingList>(); FindGameObjectsAndTexts(); SetDates(); CheckAndCorrectCurrentDatabaseDates(); StartLiseningForEvents(); }
private void Start() { foodSelectionScript = GameObject.Find("Manager").GetComponent <FoodSelection>(); }