internal static ActionNodeEnable Get(bool isEnable, bool isToggle = false) { ActionNodeEnable active = opNodes.Get(); active.isEnable = isEnable; active.isToggle = isToggle; return(active); }
/// <summary> /// 设置GameObject显示(SetActive(false)) /// </summary> /// <returns></returns> public ActionSequence Enable() { nodes.Add(ActionNodeEnable.Get(true)); return(this); }
/// <summary> /// 设置GameObject隐藏(SetActive) /// </summary> /// <returns></returns> public ActionSequence Disable() { nodes.Add(ActionNodeEnable.Get(false)); return(this); }