Exemplo n.º 1
0
    IEnumerator Open()
    {
        yield return(new WaitForSeconds(AppearTime));

        InAction.OnCompleteMethod();
        animator.SetInteger("state", (int)UIDisplayState.Normal);
    }
Exemplo n.º 2
0
 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) + ")");
            }
        }
Exemplo n.º 4
0
    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 ());
        }
    }
Exemplo n.º 5
0
 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);
     }
 }
Exemplo n.º 6
0
    private void noAnimationIn()
    {
        if (InAction.OnStartMethod != null)
        {
            InAction.OnStartMethod();
        }

        transform.localScale = Vector3.one;

        if (InAction.OnCompleteMethod != null)
        {
            InAction.OnCompleteMethod();
        }
    }
Exemplo n.º 7
0
 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();
 }
Exemplo n.º 8
0
        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)
 {
 }
Exemplo n.º 10
0
 /// <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));
 }
Exemplo n.º 11
0
 public void Remove(InAction <T> reaction) => _reaction.Remove(reaction);
Exemplo n.º 12
0
 public void Add(InAction <T> reaction) => _reaction.Add(reaction);
Exemplo n.º 13
0
 public virtual string Format(InAction act)
 {
     return(act.Name);
 }
Exemplo n.º 14
0
 public static Node Run(InAction <TMessage> run) => From(new Schedule(_ => CreateRunner(run)));
Exemplo n.º 15
0
 public static Execution Create <T>(Phase <T> phase, InAction <T> run) => throw null;
Exemplo n.º 16
0
 public override void Visit(InAction act)
 {
     _inActions.Add(act);
 }