Exemplo n.º 1
0
    public void SpawnHigher()
    {
        GameObject bullet;

        bullet = MerlionAcrBulletSpawner.Instantiate(mBulletPrefab, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.Euler(0.0f, 0.0f, 0.0f)) as GameObject;
        bullet.transform.position = mMyTransform.position;
        ArcBullet ab = bullet.GetComponent <ArcBullet>();

        float x = Random.Range(0.0f, mVelocityRange.x);
        float y = Random.Range(0.0f, mVelocityRange.y);

        ab.mVelocity = new Vector2(-(x + 1.0f), (y + 4.0f));
        ab.mGravity  = mGravityScale;
    }
Exemplo n.º 2
0
 public ML_TailAttackState(MerlionBoss owner)
 {
     this.owner    = owner;
     mThrower      = owner.mVolleySpawner.GetComponent <MerlionAcrBulletSpawner>();
     mSpawnCounter = mSpawnInterval;
 }