protected override void OnDlgInit()
    {
        cLocalization = Singlton.getInstance("NvLocalizationManager") as NvLocalizationManager;
        if (cLocalization == null)
        {
            Debug.LogError("Can Not Find Localization File!!");
        }

        PanReturnConfirm.gameObject.SetActiveRecursively(false);

        SprReady.animation.Stop();
        SprGo.animation.Stop();
        SprPerfect.animation.Stop();
        SprGood.animation.Stop();
        SprBad.animation.Stop();
        SprMiss.animation.Stop();
        cShowTime.animation.Stop();
        cShowTimeAcc.animation.Stop();

        SprReady.enabled   = false;
        SprGo.enabled      = false;
        SprPerfect.enabled = false;
        SprGood.enabled    = false;
        SprBad.enabled     = false;
        SprMiss.enabled    = false;
        cShowTime.SetActiveRecursively(false);
        cShowTimeAcc.SetActiveRecursively(false);

        BtnDrumBeat.gameObject.active = false;
        SprDrumBeatHalo.enabled       = false;
        SprDrumBeatHalo.animation.Stop();

        for (int i = 0; i < SprOperator.Length; i++)
        {
            SprOperator[i].enabled = false;
            //Debug.Log("SprOperator[" + i + "].sprite.name:" + SprOperator[i].sprite.name);
        }

        SprGestureBg.enabled = false;

        cGesture = Singlton.getInstance("DCGesture") as DCGesture;
        cGesture.SetGestureEnable(false);
        cGesture.FuncGetGesture    = DistinguishGesture;
        cGesture.FuncNoHasPoints   = SetEmitFalse;
        cGesture.FuncSamplingPoint = SetPos;
    }
示例#2
0
    void RealSave()
    {
        DCGesture gesture = Object.FindObjectOfType(typeof(DCGesture)) as DCGesture;

        List <Point2D> tmplist = gesture.GetPoint2DList();

        SaveJson(" public List<Point2D> getGestureLighting4()");

        SaveJson("{");

        SaveJson("  List<Point2D> path = new List<Point2D>();");

        for (int i = 0; i < tmplist.Count; i++)
        {
            SaveJson(" path.Add(new Point2D( " + tmplist[i].x + "," + tmplist[i].y + "));");

            SetPointToShow(tmplist[i].ToVector3());
        }
        SaveJson(" return path;");

        SaveJson("}");
    }
    protected override void OnDlgInit()
    {
        cLocalization = Singlton.getInstance("NvLocalizationManager") as NvLocalizationManager;
        if (cLocalization == null)
        {
            Debug.LogError("Can Not Find Localization File!!");
        }

        PanReturnConfirm.gameObject.SetActiveRecursively(false);

        SprReady.animation.Stop();
        SprGo.animation.Stop();
        SprPerfect.animation.Stop();
        SprGood.animation.Stop();
        SprBad.animation.Stop();
        SprMiss.animation.Stop();
        cShowTime.animation.Stop();
        cShowTimeAcc.animation.Stop();

        SprReady.enabled = false;
        SprGo.enabled = false;
        SprPerfect.enabled = false;
        SprGood.enabled = false;
        SprBad.enabled = false;
        SprMiss.enabled = false;
        cShowTime.SetActiveRecursively(false);
        cShowTimeAcc.SetActiveRecursively(false);

        BtnDrumBeat.gameObject.active = false;
        SprDrumBeatHalo.enabled = false;
        SprDrumBeatHalo.animation.Stop();

        for (int i = 0; i < SprOperator.Length; i++ )
        {
            SprOperator[i].enabled = false;
            //Debug.Log("SprOperator[" + i + "].sprite.name:" + SprOperator[i].sprite.name);
        }

        SprGestureBg.enabled = false;

        cGesture = Singlton.getInstance("DCGesture") as DCGesture;
        cGesture.SetGestureEnable(false);
        cGesture.FuncGetGesture = DistinguishGesture;
        cGesture.FuncNoHasPoints = SetEmitFalse;
        cGesture.FuncSamplingPoint = SetPos;
    }