void TaskOnClickUp() { //No floors above 5 if (mapFloor == 5) { return; } mapFloor++; //Change map sprite to new floor sprite spriteNoSign.sprite = sprites_nosign[mapFloor]; spriteSigned.sprite = sprites_signed[mapFloor]; FloorText(); //Update Pointer poisitions to class path if (DropDownScript.FloorA_dropd.value != 6 && DropDownScript.FloorB_dropd.value != 6) { DropDownScript.ChangeStartpos(); DropDownScript.ChangeEndpos(); } if (DoesFloorNeedGeneration(mapFloor) && BoardCreator.drawPath.positionCount == 0) { //Generate Path for the floors that need generating GeneratePath(); } DropDownScript.AlterDirectionText(); if (DoesFloorNeedGeneration(mapFloor) == false) { //Reset Pointers to position off map BoardCreator.ResetPointers(); //Hide Directions on unused floors DropDownScript.DirectionsTxt.text = ""; } }