Example #1
0
 public void Grotation(GObject parent, float endValue, float time, float nexttime, bool onoff)
 {
     if (onoff)
     {
         killtweener(roationtw, parent.TweenRotate(endValue, time), parent, onoff);
         killtweener(fadetw, parent.TweenFade(1, time), parent, onoff);
     }
     else
     {
         //killtweener(roationtw,parent.TweenRotate(-30f, nexttime));
         killtweener(fadetw, parent.TweenFade(0, nexttime), parent, onoff);
         StartCoroutine(waitMove(nexttime, () => { parent.visible = false; parent.rotation = -40f; }));
     }
 }
Example #2
0
 public void GmoveYFode(GObject parent, float endValue, float fodeendvalue, float time, bool onoff)
 {
     if (onoff)
     {
         parent.visible = true;
         killtweener(movetw, parent.TweenMoveY(endValue, time), parent, onoff);
         killtweener(fodetw, parent.TweenFade(fodeendvalue, time), parent, onoff);
     }
     else
     {
         killtweener(movetw, parent.TweenMoveY(endValue, time), parent, onoff);
         killtweener(fodetw, parent.TweenFade(fodeendvalue, time), parent, onoff);
         //StartCoroutine(waitMove(time, () => { parent.visible = false;}));
     }
 }
Example #3
0
    private void OnRander(int index, GObject obj)
    {
        GLoader    n0 = obj.asCom.GetChild("n0").asLoader;
        GTextField n1 = obj.asCom.GetChild("n1").asTextField;
        GTextField n2 = obj.asCom.GetChild("n2").asTextField;
        GTextField n3 = obj.asCom.GetChild("n3").asTextField;

        if (canMoveItem)
        {
            obj.alpha = 0;
            obj.TweenFade(1f, (0.7f * (index + 1)));
        }
        else
        {
            obj.alpha = 1;
        }
        CardVo carda = DataManager.inst.GetCardVo(Cid, card.lv - 1);
        Dictionary <string, object> tipi = (Dictionary <string, object>)tips [uplist [index]];

        n1.text = Tools.GetMessageById(((Dictionary <string, object>)sim [tipi ["type"].ToString()]) ["name"].ToString()) + ":";
        string[] arr = MediatorItemShipInfo.TextFild(uplist [index], carda, null, null, true, false);
        n2.text = arr [0];
        if (arr.Length != 1)
        {
            n3.text = arr [1];
        }
        else
        {
            n3.text = "";
        }
        n0.url = Tools.GetResourceUrl("Icon:" + ((Dictionary <string, object>)sim [tipi ["type"].ToString()]) ["icon"].ToString());
    }
Example #4
0
 public void TweenAlpha(GObject go, float time, float start = 0f, float end = 1f)
 {
     go.alpha = start;
     go.TweenFade(end, time);
 }