IEnumerator Open() { yield return(new WaitForSeconds(AppearTime)); InAction.OnCompleteMethod(); animator.SetInteger("state", (int)UIDisplayState.Normal); }
private void animatorIn() { InAction.OnStartMethod(); if (animator != null) { animator.speed = 1f / AppearTime; animator.Play(k_OpenTransitionName); StartCoroutine(Open(animator)); } }
public override void Visit(InAction act) { List <string> children = PopChildren(); if (children.Count == 0) { Return(act.Name); } else { Return(act.Name + "(" + Join(", ", children) + ")"); } }
private void animatorIn() { InAction.OnStartMethod(); if (animator != null) { animator.speed = 1f / AppearTime; animator.SetInteger("state", (int)UIDisplayState.Showining); DelayAction delay = new DelayAction(AppearTime, null, () => { InAction.OnCompleteMethod(); animator.SetInteger("state", (int)UIDisplayState.Normal); }); delay.Play(); // StartCoroutine (Open ()); } }
void Action(out Action act) { act = null; Expression exp = null; Variable v = null; if (la.kind == 3) { Get(); InAction inAct = new InAction(t.val); if (la.kind == 10) { Get(); Expect(3); v = new Variable(t.val); SetPos(v, t); inAct.AddVariable(v); while (la.kind == 11) { Get(); Expect(3); v = new Variable(t.val); SetPos(v, t); inAct.AddVariable(v); } Expect(12); } act = inAct; } else if (la.kind == 5) { Get(); OutAction outAct = new OutAction(t.val); if (la.kind == 10) { Get(); ArithmeticExpression(out exp); outAct.AddExpression(exp); while (la.kind == 11) { Get(); ArithmeticExpression(out exp); outAct.AddExpression(exp); } Expect(12); } act = outAct; } else if (la.kind == 6) { MethodCall(out exp, true); act = new Call((MethodCallExpression)exp); } else { SynErr(43); } }
private void noAnimationIn() { if (InAction.OnStartMethod != null) { InAction.OnStartMethod(); } transform.localScale = Vector3.one; if (InAction.OnCompleteMethod != null) { InAction.OnCompleteMethod(); } }
IEnumerator Open(Animator anim) { if (anim != null) { bool closedStateReached = anim.GetCurrentAnimatorStateInfo(layer_Index).IsName(k_OpenEndStateName); while (!closedStateReached) { if (!anim.IsInTransition(layer_Index)) { closedStateReached = anim.GetCurrentAnimatorStateInfo(layer_Index).IsName(k_OpenEndStateName); } yield return(new WaitForEndOfFrame()); } } InAction.OnCompleteMethod(); }
void InOrReadAction(out Action action, string locality) { Expression exp = null; action = null; if (la.kind == 19) { Get(); action = new InAction(); action.Locality = locality; } else if (la.kind == 20) { Get(); action = new ReadAction(); action.Locality = locality; } else { SynErr(30); } Expect(14); InOrReadParam(out exp); action.AddExpression(exp); while (la.kind == 8) { Get(); InOrReadParam(out exp); action.AddExpression(exp); } Expect(15); Expect(18); if (la.kind == 1) { Get(); action.At = new PLRString(t.val); SetPos(action.At, t); } else if (la.kind == 2) { Get(); action.At = new Variable(t.val); SetPos(action.At, t); } else { SynErr(31); } }
public virtual void Visit(InAction act) { }
/// <summary> /// Performs the specified req typ. /// </summary> /// <param name="reqTyp">The req typ.</param> /// <param name="postObj">The post object.</param> /// <returns></returns> public object Perform(RequestTyp reqTyp, InAction postObj) { return(DoRequest(reqTyp, postObj, null)); }
public void Remove(InAction <T> reaction) => _reaction.Remove(reaction);
public void Add(InAction <T> reaction) => _reaction.Add(reaction);
public virtual string Format(InAction act) { return(act.Name); }
public static Node Run(InAction <TMessage> run) => From(new Schedule(_ => CreateRunner(run)));
public static Execution Create <T>(Phase <T> phase, InAction <T> run) => throw null;
public override void Visit(InAction act) { _inActions.Add(act); }