void switchToMainLab() { topLevelSpliceUI.SetActive(false); //cloneGO.GetComponent<BoxCollider2D>().enabled = true; //spliceGO.GetComponent<BoxCollider2D>().enabled = true; if (cameraRotationCoroutine != null) { StopCoroutine(cameraRotationCoroutine); } //cameraMovementCoroutine = StartCoroutine(moveCameraTowards(defaultCamPos)); switch (currentView) { case LAB_VIEWS.SPLICING: cameraRotationCoroutine = StartCoroutine(rotateCamera(-90)); break; case LAB_VIEWS.CLONING: cameraRotationCoroutine = StartCoroutine(rotateCamera(90)); break; default: print("Error. Invalid switch parameter"); break; } currentView = LAB_VIEWS.LOBBY; }
void switchToClone() { //cloneGO.GetComponent<BoxCollider2D>().enabled = false; currentView = LAB_VIEWS.CLONING; if (cameraRotationCoroutine != null) { StopCoroutine(cameraRotationCoroutine); } cameraRotationCoroutine = StartCoroutine(rotateCamera(-90)); }
void switchToSplice() { currentView = LAB_VIEWS.SPLICING; //spliceGO.GetComponent<BoxCollider2D>().enabled = false; topLevelSpliceUI.SetActive(true); if (cameraRotationCoroutine != null) { StopCoroutine(cameraRotationCoroutine); } cameraRotationCoroutine = StartCoroutine(rotateCamera(90)); }