public override void StartAction() { //IsTimeUp = false; IsComplete = false; NowTime = TimeLimit; car.position = StartPoint.position; car.rotation = StartPoint.rotation; if(carb == null){ carb = car.GetComponent<CarB>(); } carb.SetStartLine(false); carb.ResetNowNode(); CountDownTimer = MyGameCountDownTimer.GetComponent<GameCountDownTimer>(); CountDownTimer.IsShowCountDown = true; CountDownTimer.SetNowTime(NowTime); property = car.GetComponent<CarProperty>(); property.SetEnergy(0.0f); // userinterfacecontrol = FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl; // userinterfacecontrol.SetShowCarPos(false); // userinterfacecontrol.SetShowEnergy(true); // userinterfacecontrol.SetShowLoop(true); // userinterfacecontrol.SetShowRank(false); // userinterfacecontrol.SetShowTime(false); // userinterfacecontrol.SetShowSkillBg(false); // for(int i = 0 ; i < 3 ; i++){ // userinterfacecontrol.SetShowSkill(i,false); // } // userinterfacecontrol.SetShowBrake(true); }
// private UserInterfaceControl userinterfacecontrol; public override void StartAction() { //IsTimeUp = false; IsComplete = false; // NowTime = 0.0f; car.position = StartPoint.position; car.rotation = StartPoint.rotation; if(carb == null){ carb = car.GetComponent<CarB>(); } carb.SetStartLine(false); carb.ResetNowNode(); property = car.GetComponent<CarProperty>(); property.SetEnergy(1.0f); AICar = GameObject.FindWithTag("TrainingAICar").transform; AIproperty = AICar.GetComponent<CarProperty>(); AICar.GetComponent<CarAI>().enabled = true; AIcarb = AICar.GetComponent<CarB>(); AIcarb.Wait(false); // userinterfacecontrol = FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl; // userinterfacecontrol.SetShowCarPos(false); // userinterfacecontrol.SetShowEnergy(true); // userinterfacecontrol.SetShowLoop(false); // userinterfacecontrol.SetShowRank(true); // userinterfacecontrol.SetShowTime(false); // userinterfacecontrol.SetShowSkillBg(true); // for(int i = 0 ; i < 3 ; i++){ // userinterfacecontrol.SetShowSkill(i,false); // } // userinterfacecontrol.SetShowSkill(0,true); // userinterfacecontrol.SetShowBrake(true); }