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);
 }