Example #1
0
  protected override void initializeRest() {
    asm = (AlienshipManager)objectsManager;
    canBeMagnetized = false;

    shootLaserPer = asm.shootLaserPer;
    chargeTime = asm.chargeTime;
    headFollowingSpeed = asm.headFollowingSpeed;
    offScreenSpeedScale = asm.offScreenSpeedScale;
    speed = asm.speed;
    detectDistance = asm.detectDistance;

    laserCanon = transform.Find("LaserCanon").gameObject;
  }
Example #2
0
  public void set(float angle, AlienshipManager asm, AlienshipMover father) {
    transform.eulerAngles = new Vector3(0, angle, 0);
    targetRadius = asm.laserRadius;
    targetLength = asm.laserLength;
    shootingDuration = asm.laserShootingDuration;
    stayDuration = asm.laserStayDuration;
    shrinkingDuration = asm.laserShrinkingDuration;
    rotatingSpeed = asm.laserRotatingSpeed;
    loseEnergy = asm.laserLoseEnergy;
    // outer = transform.Find("Outer");
    this.father = father;

    stayCount = 0;
    radius = 0;
    transform.localScale = Vector3.zero;

    status = 1;
  }