// Start is called before the first frame update void Start() { //necessary initialization regarding trash can miscManager = misc.GetComponent <MiscelleniousManager>(); fruitStallManager = fruitStalls.GetComponent <FruitStallManager>(); playerManager = players.GetComponent <PlayerManager>(); errorMessageNothingToTrashP1.SetActive(false); errorMessageNothingToTrashP2.SetActive(false); }
// Start is called before the first frame update void Start() { //initialization done regarding HUDS helpScreen.SetActive(false); helpButton.SetActive(true); miscelleniousManager = miscellinious.GetComponent <MiscelleniousManager>(); playerOneWininMessage.SetActive(false); playerTwoWininMessage.SetActive(false); playerDrawMessage.SetActive(false); }
void Start() { //all the necessary reference collected inputManager = gameFacilitator.GetComponent <InputManager>(); fruitStallManager = fruitStalls.GetComponent <FruitStallManager>(); customersManager = customers.GetComponent <CustomerManager>(); trashCansManager = trashCans.GetComponent <TrashCanManager>(); choppingBoardManager = choppingBoards.GetComponent <ChoppingBoardManager>(); plateTablelManager = plateTable.GetComponent <PlateTableManager>(); miscelleniousManager = miscellinious.GetComponent <MiscelleniousManager>(); hudManager = gameObject.GetComponent <HUDManager>(); }
// Start is called before the first frame update void Start() { //necessary initialization specially customer fruit requirement randomized with time limit errorMessageWrongDeliveryP1.SetActive(false); errorMessageWrongDeliveryP2.SetActive(false); duccessfulDeliveryP1.SetActive(false); duccessfulDeliveryP2.SetActive(false); plateTableManager = plate.GetComponent <PlateTableManager>(); fruitManager = fruit.GetComponent <FruitStallManager>(); playerManager = players.GetComponent <PlayerManager>(); miscManager = misc.GetComponent <MiscelleniousManager>(); choppingBoardManager = chopBoard.GetComponent <ChoppingBoardManager>(); //print("s "+ fruitObjectIcon1[0]); //print("d "+ fruitObjectIcon[0, 0]); initialLengthC1 = healthBarChopC1.transform.localScale.x; initialLengthC2 = healthBarChopC2.transform.localScale.x; initialLengthC3 = healthBarChopC3.transform.localScale.x; initialLengthC4 = healthBarChopC4.transform.localScale.x; initialLengthC5 = healthBarChopC5.transform.localScale.x; for (int i = 0; i < TOTAL_FRUIT_TYPE; i++) { // print("length " + fruitObjectIcon.Length + " " + fruitObjectIcon1); fruitObjectIcon[0, i] = fruitObjectIcon1[i]; fruitObjectIcon[1, i] = fruitObjectIcon2[i]; fruitObjectIcon[2, i] = fruitObjectIcon3[i]; fruitObjectIcon[3, i] = fruitObjectIcon4[i]; fruitObjectIcon[4, i] = fruitObjectIcon5[i]; } //print("length " + fruitObjectIcon1.Length ); DisableAllCustomerFoodIcons(); customerWaitTime = new float[NO_OF_TOTAL_CUSTOMER]; customerWaitTimer = new float[NO_OF_TOTAL_CUSTOMER]; customerFruitRequirement = new int[NO_OF_TOTAL_CUSTOMER, NO_OF_TOTAL_FOOD]; InitiateCustomerWaitTime(); InitiateCustomerFruitRequirement(); // DisableAllCustomerFoodIcons(); }