public void ClickedFunctions() { levelScreen.SetActive(false); functionScreen.SetActive(true); methodCanvas.SetActive(true); dashboardCanvas.SetActive(true); gameController.SetActive(true); CanvasAnimations.MoveCanvas(menuCanvas, new Vector3(-0.28f, 0, 0.2f)); CanvasAnimations.MoveCanvas(dashboardCanvas, new Vector3(0, 0, 0.35f)); CanvasAnimations.MoveCanvas(methodCanvas, new Vector3(0.24f, 0, 0.25f)); state = UIStates.function; }
public static float GetSelfParentPosition(RectTransform self, CanvasAnimations.HorizontalOrientations orientation) { return(CanvasAnimations.GetSelfParentPosition(self, orientation)); }
public static Tweener MoveInHorSide(Transform transformToCastAndMove, float movementSpeed, CanvasAnimations.HorizontalOrientations moveInFrom, Ease ease = Ease.Unset) { return(CanvasAnimations.MoveInHorSide(transformToCastAndMove, movementSpeed, moveInFrom, ease).SetUpdate(true)); }
public static Tweener MoveOutVertSide(RectTransform transformToMove, float movementSpeed, CanvasAnimations.VerticalOrientation moveOutTo, Ease ease = Ease.Unset) { return(CanvasAnimations.MoveOutVertSide(transformToMove, movementSpeed, moveOutTo, ease).SetUpdate(true)); }