public void Init() { TweenLocalPosition.Begin(mountain, 1.0f, targetPos.localPosition); TweenRotation.Begin(mountain, 1.0f, targetPos.localRotation); TweenScale.Begin(mountain, 1.0f, targetPos.localScale); TweenGroupAlpha.Begin(buttons, 1.0f, 1); }
public void EnableImgTip() { img.color = Color.white; img.enabled = true; imgchild.enabled = true; TweenGroupAlpha.Begin(img.gameObject, 1.0f, 0.7f); }
public Task show(float alpha = 1.0f) { TweenTask task = new TweenTask(delegate() { return(TweenGroupAlpha.Begin(cg_.gameObject, 0.3f, alpha)); }); TaskManager.PushFront(task, delegate() { gr_.enabled = true; }); return(task); }
public Task hide() { TweenTask task = new TweenTask(delegate() { return(TweenGroupAlpha.Begin(cg_.gameObject, 0.3f, 0.0f)); }); TaskManager.PushFront(task, delegate() { // Debug.Log("((())^^^^"); gr_.enabled = false; }); return(task); }
public Task endTask() { TweenTask tt = new TweenTask(delegate { return(TweenGroupAlpha.Begin(_view.end.gameObject, 0.3f, 1.0f)); }); TaskManager.PushFront(tt, delegate { _view.end._cg.alpha = 0; _view.end._score.text = _model.score.ToString(); _view.end.gameObject.SetActive(true); }); return(tt); }
public Task hide() { TweenTask task = new TweenTask ( delegate { TweenGroupAlpha alpha = TweenGroupAlpha.Begin(_cg.gameObject, 0.15f, 0.0f); return(alpha); } ); TaskManager.PushBack(task, delegate { this.gameObject.SetActive(false); }); return(task); }
public void OnButtonClick(int value) { switch (value) { case 1: break; case 2: Tween tween = TweenGroupAlpha.Begin(gameObject, 1f, 0); tween.onFinished += delegate(Tween tw) { gameObject.GetComponent <CanvasGroup>().blocksRaycasts = false; Flow.Instance.step = Step.InitEnter; }; break; case 3: break; default: Debug.LogError("!!!!!"); break; } }
public void HandleToMake() { CameraController.Instance.FocusOn(makeV); Flow.Instance.step = Step.InitMake; TweenGroupAlpha.Begin(buttons, 1.0f, 0); }
public void HandleToHistory() { CameraController.Instance.FocusOn(historyV); Flow.Instance.step = Step.InitHistroy; TweenGroupAlpha.Begin(buttons, 1.0f, 0); }