public static PanelStateEnum GetContainerVisibility(TweenContainer p_panel) { if (p_panel != null) { return(p_panel.PanelState); } return(PanelStateEnum.Closed); }
public static PanelStateEnum GetContainerVisibilityInHierarchy(TweenContainer p_panel) { if (p_panel != null) { return(GetContainerVisibilityInHierarchy(p_panel.gameObject)); } return(PanelStateEnum.Closed); }
public static PanelStateEnum GetContainerVisibility(GameObject p_object) { if (p_object != null) { TweenContainer v_panel = p_object.GetComponent <TweenContainer>(); if (v_panel != null) { return(GetContainerVisibility(v_panel)); } else { return(p_object.activeSelf ? PanelStateEnum.Opened : PanelStateEnum.Closed); } } return(PanelStateEnum.Closed); }
public static void SetContainerVisibility(TweenContainer p_panel, ShowObjectActionEnum p_action, float p_time) { if (p_panel != null) { if (p_time > 0) { List <object> v_params = new List <object>(); v_params.Add(p_panel); v_params.Add(p_action); Kyub.DelayedFunctionUtils.CallFunction(new System.Action <TweenContainer, ShowObjectActionEnum>(SetContainerVisibility), v_params.ToArray(), p_time); } else { SetContainerVisibility(p_panel, p_action); } } }
public static void SetContainerVisibility(TweenContainer p_panel, ShowObjectActionEnum p_action) { if (p_panel != null) { if (p_action == ShowObjectActionEnum.Show) { p_panel.Show(false); } else if (p_action == ShowObjectActionEnum.ShowFinish) { p_panel.Show(true); } else if (p_action == ShowObjectActionEnum.Hide) { p_panel.Hide(false); } else { p_panel.Hide(true); } } }
public static void SetContainerVisibility(GameObject p_object, ShowObjectActionEnum p_action) { if (p_object != null) { TweenContainer v_panel = p_object.GetComponent <TweenContainer>(); if (v_panel != null) { SetContainerVisibility(v_panel, p_action); } else { if (p_action == ShowObjectActionEnum.Show || p_action == ShowObjectActionEnum.ShowFinish) { p_object.SetActive(true); } else { p_object.SetActive(false); } } } }