示例#1
0
 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);
 }
示例#2
0
 public void EnableImgTip()
 {
     img.color        = Color.white;
     img.enabled      = true;
     imgchild.enabled = true;
     TweenGroupAlpha.Begin(img.gameObject, 1.0f, 0.7f);
 }
示例#3
0
文件: Loading.cs 项目: gdgeek/qclass
    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);
    }
示例#4
0
文件: Loading.cs 项目: gdgeek/qclass
    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);
    }
示例#5
0
    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);
    }
示例#6
0
    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);
    }
示例#7
0
    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;
        }
    }
示例#8
0
 public void HandleToMake()
 {
     CameraController.Instance.FocusOn(makeV);
     Flow.Instance.step = Step.InitMake;
     TweenGroupAlpha.Begin(buttons, 1.0f, 0);
 }
示例#9
0
 public void HandleToHistory()
 {
     CameraController.Instance.FocusOn(historyV);
     Flow.Instance.step = Step.InitHistroy;
     TweenGroupAlpha.Begin(buttons, 1.0f, 0);
 }