Exemplo n.º 1
0
    public void OnSceneStartForExp()
    {
        LScene scene = LScene.GetInstance();

        bool defaultParam = scene.HaveAnimator;

        scene.LoadTrees();

        //不进行动画效果
        scene.HaveAnimator = false;
        for (int i = 0; i < 20; i++)
        {
            scene.NextDay();
        }

        OutlineEffect.Instance.UpdateOutlineControl();

        if (environmentParams != null)
        {
            foreach (var treeGroup in scene.TreeGroups)
            {
                treeGroup.EnvirParamsDepthCopy(environmentParams);
            }
        }

        scene.HaveAnimator = defaultParam;
    }
Exemplo n.º 2
0
        private IEnumerator NextWithDuration()
        {
            LScene scene = LScene.GetInstance();

            for (int i = 0; i < LScene.GetInstance().Duration; i++)
            {
                scene.NextDay();

                yield return(new WaitWhile(TreeAnimator.IsPlaying));
            }

            OutlineEffect.Instance.UpdateOutlineControl();
        }