예제 #1
0
 //制御点がコース外に飛び出てたらもどす
 private void CheckRegion()
 {
     if (this.nativeLocation.X < 0)
     {
         this.nativeLocation.X = 0;
     }
     if (-this.nativeLocation.Y < 0)
     {
         this.nativeLocation.Y = 0;
     }
     if (this.nativeLocation.X > EtCourseScaler.GetNativeCourseSize().Width)
     {
         this.nativeLocation.X = EtCourseScaler.GetNativeCourseSize().Width;
     }
     if (-this.nativeLocation.Y > EtCourseScaler.GetNativeCourseSize().Height)
     {
         this.nativeLocation.Y = -EtCourseScaler.GetNativeCourseSize().Height;
     }
 }