Ejemplo n.º 1
0
 void FirstOpenShow(int id, string name)
 {
     TweenAlpha_2.Begin(FrontBG.gameObject, 0.3f, 0);
     if (meshes.Count > 0)
     {
         Obj.enabled = true;
         Obj.sprite  = meshes [id];
     }
 }
Ejemplo n.º 2
0
    void FirstOpenClose(int id, string name)
    {
        TweenAlpha_2.Begin(FrontBG.gameObject, 0.3f, 1);

        if (meshes.Count > 0)
        {
            Obj.enabled = false;
            Obj.sprite  = null;
        }
    }
Ejemplo n.º 3
0
    void AddOnAlpha()
    {
        transform.localPosition = StartPos.localPosition;

        _alpha       = TweenAlpha_2.Begin(gameObject, 0.6f, 1);
        _alpha.delay = delay;
        _alpha.AddOnFinished(Recall);
        _alpha.AddOnFinished(ChangueSpriteToTouch);
        _alpha.AddOnFinished(StartPositionTween);
    }
Ejemplo n.º 4
0
 public void EndAlpha()
 {
     _alpha       = TweenAlpha_2.Begin(gameObject, 0.6f, 0);
     _alpha.delay = 0;
     _alpha.onFinished.Clear();
 }