コード例 #1
0
 void Start()
 {
     rotateRandomly = GetComponent <RotateRandomly>();
     pulse          = GetComponent <AnimateShaderProperty>();
     findEnemyTimer = findEnemyInterval;
     rotateTimer    = rotateDuration;
     shootTimer     = shootInterval;
     dome           = GameObject.FindGameObjectWithTag("Dome").transform;
 }
コード例 #2
0
 private void Start()
 {
     turnUpTheLight        = GetComponent <TurnUpTheLight>();
     rotateRandomly        = GetComponent <RotateRandomly>();
     flickerLightIntensity = GetComponent <PerlinFlickerLightIntensity>();
     orbiter                  = GetComponent <FollowOrbit>();
     animateIntensity         = GetComponent <AnimateShaderColorPropertyIntensity>();
     shootAtEnemyPeriodically = GetComponent <ShootAtEnemyPeriodically>();
     orbiter.SetSpeed(originalOrbitSpeed);
     mouseDrag3D = GetComponent <MouseDrag3D>();
 }
コード例 #3
0
 private void Start()
 {
     mouseDrag3D    = GetComponent <MouseDrag3D>();
     turnUpTheLight = GetComponent <TurnUpTheLight>();
     rotateRandomly = GetComponent <RotateRandomly>();
 }