コード例 #1
0
ファイル: InertialMotor.cs プロジェクト: minthubk/Carousel
 private void Awake()
 {
     carouselCenterOnChild = carouselCenterOnChild ?? GetComponent <CarouselCenterOnChild>();
     carousel = carousel ?? GetComponent <AbstractCarousel>();
     if (carousel != null)
     {
         Moveable = carousel;
     }
 }
コード例 #2
0
 protected virtual void Awake()
 {
     inertialMotor = inertialMotor ?? GetComponent<InertialMotor>();
     carousel = carousel ?? GetComponent<AbstractCarousel>();
 }
コード例 #3
0
 protected virtual void Awake()
 {
     inertialMotor = inertialMotor ?? GetComponent <InertialMotor>();
     carousel      = carousel ?? GetComponent <AbstractCarousel>();
 }
コード例 #4
0
ファイル: InertialMotor.cs プロジェクト: minthubk/Carousel
 private void Awake()
 {
     carouselCenterOnChild = carouselCenterOnChild ?? GetComponent<CarouselCenterOnChild>();
     carousel = carousel ?? GetComponent<AbstractCarousel>();
     if (carousel != null)
     {
         Moveable = carousel;
     }
 }