Exemple #1
0
 public void SetCarAISetting(CarAISetting setting)
 {
     carAISetting   = setting;
     transform.name = carAISetting.Name;
     posInit        = TestConfig.ParseV3(carAISetting.PosInit);
     posStart       = TestConfig.ParseV3(carAISetting.PosStart);
     posAim         = TestConfig.ParseV3(carAISetting.PosEnd);
     speed1         = carAISetting.Speed1;
     speed2         = carAISetting.Speed2;
     timeEvent      = carAISetting.TimeEvent;
     disEvent       = carAISetting.DisEvent;
     eventMode      = (EventMode)carAISetting.ModeEvent;
     CarInit();
 }
Exemple #2
0
 protected override void Start()
 {
     base.Start();
     carAISetting = new CarAISetting
     {
         Name      = transform.name,
         PosInit   = posInit.ToString(),
         PosStart  = posStart.ToString(),
         PosEnd    = posAim.ToString(),
         Speed1    = speed1,
         Speed2    = speed2,
         TimeEvent = timeEvent,
         DisEvent  = disEvent,
         ModeEvent = (int)eventMode
     };
 }
Exemple #3
0
 public CarAISetting GetCarAISetting()
 {
     carAISetting = new CarAISetting
     {
         Name      = transform.name,
         PosInit   = posInit.ToString(),
         PosStart  = posStart.ToString(),
         PosEnd    = posAim.ToString(),
         Speed1    = speed1,
         Speed2    = speed2,
         TimeEvent = timeEvent,
         DisEvent  = disEvent,
         ModeEvent = (int)eventMode
     };
     return(carAISetting);
 }