Exemple #1
0
        public void SetHumansetting(HumanSetting setting)
        {
            humanSetting = setting;
            List <Vector3> vector3s = new List <Vector3> {
            };

            for (int i = 0; i < setting.PosArray.Length; i++)
            {
                vector3s.Add(TestConfig.ParseV3(setting.PosArray[i]));
            }
            transform.name = setting.Name;
            speedObjTarget = setting.Speed;
            stopTime       = setting.StopTime;
            PosList        = vector3s;
            isHumanRepeat  = setting.IsRepeat;
        }
Exemple #2
0
 public HumanSetting GetHumansetting()
 {
     string[] posStrArray = new string[PosList.Count];
     for (int i = 0; i < PosList.Count; i++)
     {
         posStrArray[i] = PosList[i].ToString();
     }
     humanSetting = new HumanSetting
     {
         Name     = transform.name,
         Speed    = speedObjTarget,
         StopTime = stopTime,
         PosArray = posStrArray,
         IsRepeat = isHumanRepeat
     };
     return(humanSetting);
 }