예제 #1
0
 protected override void Dead()
 {
     base.Dead();
     canFly = false;
     rotate.SetCanRotate(false);
     DestroyMeteor();
 }
예제 #2
0
 protected override void Start()
 {
     speed.y = Random.Range(minSpeed, maxSpeed);
     rotate  = GetComponent <RotateTransform>();
     rotate.SetCanRotate(true);
     life = 4;
     base.Start();
     anim.enabled = false;
     rend.sprite  = sprites[0];
 }