Exemple #1
0
    public Task comein()
    {
        Task task = new TweenTask(delegate() {
            TweenWorldPosition t = TweenWorldPosition.Begin(_fly, 0.9f, _mid);
            return(t);
        });

        TaskManager.PushFront(task, delegate {
            _fly.transform.position = _down;
        });
        return(task);
    }
Exemple #2
0
    public Task goout()
    {
        Task task = new TweenTask(delegate() {
            TweenWorldPosition t = TweenWorldPosition.Begin(_fly, 0.8f, _up);
            return(t);
        });

        TaskManager.PushFront(task, delegate {
            _fly.transform.position = _mid;
        });
        return(task);
    }