Exemplo n.º 1
0
 /// <summary>
 /// 设置GameObject显示(SetActive(false))
 /// </summary>
 /// <returns></returns>
 public ActionSequence Show()
 {
     nodes.Add(ActionNodeSetActive.Get(true));
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 设置GameObject反显示隐藏(SetActive(!activeSelf))
 /// </summary>
 /// <returns></returns>
 public ActionSequence ToggleActive()
 {
     nodes.Add(ActionNodeSetActive.Get(true, true));
     return(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 设置GameObject隐藏(SetActive)
 /// </summary>
 /// <returns></returns>
 public ActionSequence Hide()
 {
     nodes.Add(ActionNodeSetActive.Get(false));
     return(this);
 }