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]; } }
void FirstOpenClose(int id, string name) { TweenAlpha_2.Begin(FrontBG.gameObject, 0.3f, 1); if (meshes.Count > 0) { Obj.enabled = false; Obj.sprite = null; } }
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); }
public void EndAlpha() { _alpha = TweenAlpha_2.Begin(gameObject, 0.6f, 0); _alpha.delay = 0; _alpha.onFinished.Clear(); }