Exemplo n.º 1
0
 public GolfPath(GolfCourseMap map)
 {
     m_CurMap   = map;
     MotionPath = new GolfMotionPath(map);
     SpinDic    = new Dictionary <int, List <float> >();
     //旋球临时数据
     for (int j = 0; j < 4; j++)
     {
         List <float> spinList = new List <float>();
         spinList.Clear();
         for (int i = 1; i <= 5; i++)
         {
             GroundmaterialConfig groundMatConfig = GroundmaterialDao.Inst.GetCfg((uint)i);
             spinList.Add(groundMatConfig.SpinAddition1);
         }
         SpinDic.Add(j, spinList);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 清理操作。
 /// </summary>
 public void Clear()
 {
     m_CurMap = null;
     if (MotionPath != null)
     {
         MotionPath.Clear();
         MotionPath = null;
     }
     if (FlyInput != null)
     {
         FlyInput.Clear();
         FlyInput = null;
     }
     if (PushInput != null)
     {
         PushInput.Clear();
         PushInput = null;
     }
 }