Пример #1
0
    public override void StartAction()
    {
        //IsTimeUp = false;
        IsComplete = false;
        NowTime = TimeLimit;
        car.position = StartPoint.position;
        car.rotation = StartPoint.rotation;
        carb.SetStartLine(false);

        CountDownTimer = MyGameCountDownTimer.GetComponent<GameCountDownTimer>();
        CountDownTimer.IsShowCountDown = true;
        CountDownTimer.SetNowTime(NowTime);

        //		userinterfacecontrol = FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl;

        //		userinterfacecontrol.SetShowCarPos(false);
        //		userinterfacecontrol.SetShowEnergy(false);
        //		userinterfacecontrol.SetShowLoop(false);
        //		userinterfacecontrol.SetShowRank(false);
        //		userinterfacecontrol.SetShowTime(false);
        //		userinterfacecontrol.SetShowSkillBg(false);
        //		for(int i = 0 ; i < 3 ; i++){
        //			userinterfacecontrol.SetShowSkill(i,false);
        //		}
        //		userinterfacecontrol.SetShowBrake(true);
    }
Пример #2
0
    public override void StartAction()
    {
        //IsTimeUp = false;
        IsComplete = false;
        IsEnterCurve = false;
        ShowTurnSign = false;
        StartTriggerPlane.ResetTrig();
        EndTriggerPlane.ResetTrig();
        TurnSignTriggerPlane.ResetTrig();
        NowTime = TimeLimit;
        ShowTurnTime = 0.0f;
        car.position = StartPoint.position;
        car.rotation = StartPoint.rotation;

        CountDownTimer = MyGameCountDownTimer.GetComponent<GameCountDownTimer>();
        CountDownTimer.SetNowTime(NowTime);
        CountDownTimer.IsShowCountDown = true;
        //		userinterfacecontrol = FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl;

        //		userinterfacecontrol.SetShowCarPos(false);
        //		userinterfacecontrol.SetShowEnergy(true);
        //		userinterfacecontrol.SetShowLoop(false);
        //		userinterfacecontrol.SetShowRank(false);
        //		userinterfacecontrol.SetShowTime(false);
        //		userinterfacecontrol.SetShowTime(false);
        //		for(int i = 0 ; i < 3 ; i++){
        //			userinterfacecontrol.SetShowSkill(i,false);
        //		}
        //		userinterfacecontrol.SetShowBrake(true);
    }