public void Restart() { uiOverlay.HideGameOver(); uiOverlay.HideToolTip(); foreach (Transform t in CharacterHolder) { Destroy(t.gameObject); } stageManager.FirstStart = true; CurrentStageNum = 0; GenerateStage(true); cameraControl.followTransform = CameraResetPosition; //LeanTween.move(stageManager.cam.gameObject, CameraResetPosition.position, 1f).setEaseInOutQuad(); }
public void Deselect(bool skipToolTip = false) { if (uiStatus != null) { uiStatus.ToggleUI(false); } if (uiAttackArea != null) { uiAttackArea.ToggleUI(false); } if (uiOverlay != null && !skipToolTip) { uiOverlay.HideToolTip(); } //print("Deselected - " + gameObject.name); }