internal static ActionNodeEnable Get(bool isEnable, bool isToggle = false)
        {
            ActionNodeEnable active = opNodes.Get();

            active.isEnable = isEnable;
            active.isToggle = isToggle;
            return(active);
        }
Пример #2
0
 /// <summary>
 /// 设置GameObject显示(SetActive(false))
 /// </summary>
 /// <returns></returns>
 public ActionSequence Enable()
 {
     nodes.Add(ActionNodeEnable.Get(true));
     return(this);
 }
Пример #3
0
 /// <summary>
 /// 设置GameObject隐藏(SetActive)
 /// </summary>
 /// <returns></returns>
 public ActionSequence Disable()
 {
     nodes.Add(ActionNodeEnable.Get(false));
     return(this);
 }