コード例 #1
0
ファイル: BulletBoss.cs プロジェクト: Nissy0528/SmashBreaker
    private bool isStartMove;                     //初期加速フラグ

    /// <summary>
    /// 初期化
    /// </summary>
    public override void Initialize()
    {
        StartMove();

        enemyBulletClass = GetComponent <CircleBulletShooter>();
        bulletClass      = GetComponent <BossBulletShooter>();
        dashClass        = GetComponent <Dash>();
        rotateClass      = GetComponent <Rotation>();

        dashCount   = 0;
        bulletCount = bulletTime;
    }
コード例 #2
0
    private float length;                  //プレイヤーとの距離

    /// <summary>
    /// 初期化
    /// </summary>
    public override void Initialize()
    {
        bulletClass = GetComponent <BossBulletShooter>();
        spawnClass  = GetComponent <EnemySpawner>();
        moveClass   = GetComponent <Translation>();
        lookClass   = GetComponent <FollowPlayer>();

        moveClass.enabled = true;
        Vector2 screenMaxPos = gameManager.StageMaxPos;

        Vector2[] positions = new Vector2[] { screenMaxPos };
        moveClass.Positions = positions;
    }